agenda-libre-ruby/db/migrate/20150215121248_rename_region_foreign_key.rb

8 lines
233 B
Ruby

# The foreign key from event and lug to region was badly named
class RenameRegionForeignKey < ActiveRecord::Migration
def change
rename_column :events, :region, :region_id
rename_column :lugs, :region, :region_id
end
end