Please sign in to comment.
Ignore origin comment when checking for duplicates on Migration.copy
49ebe51 fixed copying migrations, but existing migrations would still trigger warnings. The proper way to compare migrations is to ignore origin lines - if migration is identical it means that we can silently skip it, regardless where it comes from.
- Loading branch information...
Showing with 58 additions and 5 deletions.
|@@ -0,0 +1,9 @@|
|+class PeopleHaveLastNames < ActiveRecord::Migration|
|+ def self.up|
|+ add_column "people", "hobbies", :string|
|+ def self.down|
|+ remove_column "people", "hobbies"|