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/20190515014734_change_poll_...

11 lines
261 B

class ChangePollShowResultBoolean < ActiveRecord::Migration[5.2]
def change
def up
change_column :polls,:show_result,:boolean,default: true
end
def down
change_column :polls,:show_result,:integer,default: 1
end
end
end