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: 12,617 of 198,774
Downloads: 219,984
Daily
Ranking: 66,311 of 198,739
Downloads: 1
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 | 1,043,852,410 | rspec |
| 46 | 819,245,923 | rails |
| 110 | 490,821,975 | pg |
| 125 | 422,872,440 | rspec-rails |
| 37,279 | 36,702 | osm-rubocop |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | IYBetesh |