10 lines
213 B
Ruby
10 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
|