socialforge/db/migrate/20160613065840_add_syllabus...

7 lines
160 B
Ruby
Raw Normal View History

2016-06-14 10:38:11 +08:00
class AddSyllabusToCourse < ActiveRecord::Migration
def change
add_column :courses, :syllabus_id, :integer
add_index :courses, :syllabus_id
end
end