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/20190429015510_add_default_...

8 lines
292 B

class AddDefaultForExercises < ActiveRecord::Migration[5.2]
def change
change_column :exercises, :exercise_status, :integer, :default => 1
change_column :exercises, :show_result, :integer, :default => 1
change_column :exercises, :time, :integer, :default => -1
end
end