-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
preserve db-specific options in schema.rb, fixes #148
basically any valid db-specific thing that you can already specify via `options: "..."` will be preserved on the way back out. for mysql that's: * `ON UPDATE <action>` for postgres that's: * `ON UPDATE <action>` * `ON DELETE SET DEFAULT` (doesn't map to a `:dependent` value) * `DEFERRABLE` (`NOT DEFERRABLE` is the default) * `INITIALLY DEFERRED` (`INITIALLY IMMEDIATE` is the default) * `NOT VALID` postgres' `MATCH <type>` is not supported, but that's already problematic for `:options` since it is incompatible with `:dependent` (due to where it appears in the statement), so ¯\_(ツ)_/¯
- Loading branch information
Showing
4 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters