rosa-build/db/migrate/20121003081546_rename_base_...

9 lines
328 B
Ruby

class RenameBaseHeadInPullRequests < ActiveRecord::Migration
def change
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