Categories: None [Edit]

active_record-postgres-constraints

https://rubygems.org/gems/active_record-postgres-constraints
https://github.com/on-site/active_record-postgres-constraints
From http://edgeguides.rubyonrails.org/active_record_migrations.html#types-of-schema-dumps: There is however a trade-off: db/schema.rb cannot express database specific items such as triggers, stored procedures or check constraints. While in a migration you can execute custom SQL statements, the schema dumper cannot reconstitute those statements from the database. If you are using features like this, then you should set the schema format to :sql. No longer is this the case. You can now use the default schema format (:ruby) and still preserve your check constraints.

Total

Ranking: 12,342 of 195,762
Downloads: 218,721

Daily

Ranking: 25,255 of 195,747
Downloads: 13

Depended by

RankDownloadsName

Depends on

RankDownloadsName
291,006,320,288rspec
45773,536,641rails
110461,668,575pg
122400,714,630rspec-rails
36,80536,243osm-rubocop

Owners

#GravatarHandle
1iconIYBetesh