1
0
Fork 0
MSU-Course-Alerter/db/migrate/20130407102854_add_default_value.rb

9 lines
213 B
Ruby

class AddDefaultValue < ActiveRecord::Migration
def up
change_column :alerts, :alerted, :boolean, :default => false
end
def down
change_column :alerts, :alerted, :boolean, :default => nil
end
end