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

10 lines
213 B
Ruby
Raw Normal View History

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