You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/db/migrate/20190813015633_add_new_colu...

9 lines
221 B

class AddNewColumnToCourse < ActiveRecord::Migration[5.2]
def change
add_column :courses, :start_date, :date
add_column :courses, :subject_id, :integer, default: 0
add_index :courses, :subject_id
end
end