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/20191112023111_add_defualt_...

8 lines
274 B

class AddDefualtForHacks < ActiveRecord::Migration[5.2]
def change
change_column :hacks, :status, :integer, :default => 0
change_column :hacks, :open_or_not, :boolean, :default => true
change_column :hack_user_codes, :status, :integer, :default => 0
end
end