Qualify ActiveRecord::IrreversibleMigration
This commit is contained in:
parent
1aa7b3b6a8
commit
1a65b3ac6f
8 changed files with 8 additions and 8 deletions
|
@ -82,6 +82,6 @@ class RemoveSegments < ActiveRecord::Migration
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
raise IrreversibleMigration.new
|
raise ActiveRecord::IrreversibleMigration
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -55,7 +55,7 @@ class PopulateNodeTagsAndRemove < ActiveRecord::Migration
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
raise IrreversibleMigration.new
|
raise ActiveRecord::IrreversibleMigration
|
||||||
# add_column :nodes, "tags", :text, :default => "", :null => false
|
# add_column :nodes, "tags", :text, :default => "", :null => false
|
||||||
# add_column :current_nodes, "tags", :text, :default => "", :null => false
|
# add_column :current_nodes, "tags", :text, :default => "", :null => false
|
||||||
end
|
end
|
||||||
|
|
|
@ -42,6 +42,6 @@ class MoveToInnodb < ActiveRecord::Migration
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
raise IrreversibleMigration.new
|
raise ActiveRecord::IrreversibleMigration
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -47,6 +47,6 @@ class KeyConstraints < ActiveRecord::Migration
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
raise IrreversibleMigration.new
|
raise ActiveRecord::IrreversibleMigration
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -41,7 +41,7 @@ class AddChangesets < ActiveRecord::Migration
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
# It's not easy to generate the user ids from the changesets
|
# It's not easy to generate the user ids from the changesets
|
||||||
raise IrreversibleMigration.new
|
raise ActiveRecord::IrreversibleMigration
|
||||||
#drop_table "changesets"
|
#drop_table "changesets"
|
||||||
#drop_table "changeset_tags"
|
#drop_table "changeset_tags"
|
||||||
end
|
end
|
||||||
|
|
|
@ -15,6 +15,6 @@ class AddUserForeignKeys < ActiveRecord::Migration
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
raise IrreversibleMigration.new
|
raise ActiveRecord::IrreversibleMigration
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,6 +9,6 @@ class AddForeignKeys < ActiveRecord::Migration
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
raise IrreversibleMigration.new
|
raise ActiveRecord::IrreversibleMigration
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -17,6 +17,6 @@ class CreateLanguages < ActiveRecord::Migration
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
raise IrreversibleMigration.new
|
raise ActiveRecord::IrreversibleMigration
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue