allpro/db/migrate/20130811190304_fix_association_in_lifts.rb

10 lines
211 B
Ruby
Raw Normal View History

2013-08-12 03:31:42 -04:00
class FixAssociationInLifts < ActiveRecord::Migration
def self.up
rename_column :lifts, :parent_workout, :workout_id
end
def self.down
rename_column :lifts, :workout_id, :parent_workout
end
end