socialforge/db/migrate/20140417085550_rename_cours...

10 lines
205 B
Ruby

class RenameCoursesColumnSchoolName < ActiveRecord::Migration
def up
rename_column :courses, :school_name, :school_id
end
def down
rename_column :courses, :school_id, :school_name
end
end