-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
options: "deferrable" missing in schema.rb #148
Comments
It looks as if this has been a problem for a while: #105 (comment) For what it's worth, you can work around this by dumping your schema in SQL format. In application.rb:
|
@matthuhiggins although you don't plan to support database-specific features (understandable, and i agree), what's your take on inferring/preserving the seems like that would solve this particular issue, and greatly reduce db-specific feature requests in the future :) |
Hmm, I could go for that. Do you think you could parse out the options in a sufficiently generic way? |
yeah it looks pretty trivial... for mysql it's a noop because it doesn't support any options after the for postgresql, we can just take whatever appears after the i don't think we need to do anything beyond that, because things like
|
Sounds like a plan |
preserve db-specific options in schema.rb, fixes #148
Hello,
I use add_foreign_key to add deferrable constraints to a PostgreSQL database.
That works fine in the migration and all commands are added to schema.rb --- except the last part
, options: "deferrable"
. There is just:Am I doing something wrong? Is it out of scope or a bug?
The text was updated successfully, but these errors were encountered: