Articles by Dhiraj Mishra

Rails 6.1 adds support for check constraints to database migrations

With Rails adding support for check constraints to database migrations, check constraints can easily now be added and removed from tables with simple migration DSL. Earlier, the only way to add check constraints to tables was through raw SQL queries.