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

9 lines
237 B
Ruby
Raw Normal View History

class ChangeAttachmentDefault < ActiveRecord::Migration
def up
change_column_default(:event_attachments, :public, :default => true)
end
def down
change_column_default(:event_attachments, :public, :default => nil)
end
end