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.
11 lines
261 B
11 lines
261 B
6 years ago
|
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
|