socialforge/db/migrate/20150123020615_add_show_res...

10 lines
180 B
Ruby
Raw Normal View History

class AddShowResult < ActiveRecord::Migration
def up
add_column :polls, :show_result, :integer, default: 1
end
def down
remove_column :polls, :show_result
end
end