Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the method for copying migrations, do not add scope.
The purpose of this change is to allow copying fail on the same names. Migrations change database and they should be treated with caution, if 2 migrations are named the same it's much better to skip migration and allow user decide if it should be copied or not.
- Loading branch information
Showing
6 changed files
with
60 additions
and
30 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
class CreateArticles < ActiveRecord::Migration | |||
def self.up | |||
end | |||
|
|||
def self.down | |||
end | |||
end |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
class CreateArticles < ActiveRecord::Migration | |||
def self.up | |||
end | |||
|
|||
def self.down | |||
end | |||
end |
7 changes: 7 additions & 0 deletions
7
activerecord/test/migrations/to_copy_with_timestamps2/20090101010101_create_articles.rb
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
class CreateArticles < ActiveRecord::Migration | |||
def self.up | |||
end | |||
|
|||
def self.down | |||
end | |||
end |
7 changes: 7 additions & 0 deletions
7
activerecord/test/migrations/to_copy_with_timestamps2/20090101010202_create_comments.rb
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
class CreateComments < ActiveRecord::Migration | |||
def self.up | |||
end | |||
|
|||
def self.down | |||
end | |||
end |