-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add :ignore_index_errors option to Database#create_table and :ignore_…
…errors option to Database#add_index The schema_dumper extension is going to be using these options to make it more likely that the migrations it generates will be loadable. Since indexes generally have no effect on behavior (except for unique indexes), the inability to load one shouldn't be a reason to cancel the migration. I'm not happy with this way of doing things, but I can't really think of a better idea that will allow dumping of PostgreSQL tables with indexes on text columns and attempting to restore them on MySQL.
- Loading branch information
1 parent
8cf6702
commit 7c384cb
Showing
3 changed files
with
38 additions
and
3 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