Skip to content

Commit

Permalink
Migration to add collection email setting to collection pref model
Browse files Browse the repository at this point in the history
  • Loading branch information
teganm committed Sep 21, 2012
1 parent 337aeff commit 316ca2b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class AddEmailNotificationsToCollectionPreferences < ActiveRecord::Migration
def self.up
add_column :collection_preferences, :email_notify, :boolean, :default => false, :null => false
end

def self.down
remove_column :collection_preferences, :email_notify
end
end

0 comments on commit 316ca2b

Please sign in to comment.