osem-fcy/db/migrate/20130515125823_change_attachment_default.rb

9 lines
213 B
Ruby
Raw Normal View History

class ChangeAttachmentDefault < ActiveRecord::Migration
def up
2014-07-14 21:19:42 +03:00
change_column_default(:event_attachments, :public, true)
end
def down
2014-07-14 21:19:42 +03:00
change_column_default(:event_attachments, :public, nil)
end
end