2013-05-15 15:19:53 +02:00
|
|
|
class ChangeAttachmentDefault < ActiveRecord::Migration
|
|
|
|
|
def up
|
2014-07-14 21:19:42 +03:00
|
|
|
change_column_default(:event_attachments, :public, true)
|
2013-05-15 15:19:53 +02:00
|
|
|
end
|
2014-07-21 14:27:32 +02:00
|
|
|
|
2013-05-15 15:19:53 +02:00
|
|
|
def down
|
2014-07-14 21:19:42 +03:00
|
|
|
change_column_default(:event_attachments, :public, nil)
|
2013-05-15 15:19:53 +02:00
|
|
|
end
|
|
|
|
|
end
|