[refs #90] fixed migration for ActiveRecord::IrreversibleMigration

This commit is contained in:
Alexander Machehin 2012-10-03 19:00:09 +06:00
parent 5bc59ad365
commit 47046fdd7c
1 changed files with 4 additions and 6 deletions

View File

@ -1,10 +1,8 @@
class RenameBaseHeadInPullRequests < ActiveRecord::Migration class RenameBaseHeadInPullRequests < ActiveRecord::Migration
def change def change
change_table :pull_requests do |t| rename_column :pull_requests, :base_project_id, :to_project_id
t.rename :base_project_id, :to_project_id rename_column :pull_requests, :base_ref, :to_ref
t.rename :base_ref, :to_ref rename_column :pull_requests, :head_project_id, :from_project_id
t.rename :head_project_id, :from_project_id rename_column :pull_requests, :head_ref, :from_ref
t.rename :head_ref, :from_ref
end
end end
end end