[refs #90] fixed migration for ActiveRecord::IrreversibleMigration
This commit is contained in:
parent
5bc59ad365
commit
47046fdd7c
|
@ -1,10 +1,8 @@
|
|||
class RenameBaseHeadInPullRequests < ActiveRecord::Migration
|
||||
def change
|
||||
change_table :pull_requests do |t|
|
||||
t.rename :base_project_id, :to_project_id
|
||||
t.rename :base_ref, :to_ref
|
||||
t.rename :head_project_id, :from_project_id
|
||||
t.rename :head_ref, :from_ref
|
||||
end
|
||||
rename_column :pull_requests, :base_project_id, :to_project_id
|
||||
rename_column :pull_requests, :base_ref, :to_ref
|
||||
rename_column :pull_requests, :head_project_id, :from_project_id
|
||||
rename_column :pull_requests, :head_ref, :from_ref
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue