Categories: None [Edit]
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: 11,877 of 191,483
Downloads: 216,842
Daily
Ranking: 25,502 of 191,454
Downloads: 15
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 29 | 964,633,797 | rspec |
| 44 | 726,571,628 | rails |
| 108 | 431,026,689 | pg |
| 122 | 376,037,989 | rspec-rails |
| 36,307 | 35,152 | osm-rubocop |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | IYBetesh |