aboutsummaryrefslogtreecommitdiffstats
path: root/lib/generators
diff options
context:
space:
mode:
authorTeddy Wing2012-05-30 19:36:43 -0400
committerTeddy Wing2012-05-30 19:36:43 -0400
commitfb801ab393a47cdc1bae3af063845f52dbdd258a (patch)
tree74352c0f6d83f5f4c2912f35ed2516741e6bd8f0 /lib/generators
parent3d71d19460c2dc28c27c4623957feb842baf6ce2 (diff)
downloadinboxes-fb801ab393a47cdc1bae3af063845f52dbdd258a.tar.bz2
Settings: added a settings module so that users can turn email notifications for new messages on or off.
Diffstat (limited to 'lib/generators')
-rw-r--r--lib/generators/inboxes/templates/install.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/generators/inboxes/templates/install.rb b/lib/generators/inboxes/templates/install.rb
index 472cd95..18a8a6c 100644
--- a/lib/generators/inboxes/templates/install.rb
+++ b/lib/generators/inboxes/templates/install.rb
@@ -20,11 +20,19 @@ class InstallInboxes < ActiveRecord::Migration
t.timestamps
end
+
+ create_table :inboxes_settings do |t|
+ t.references :user
+ t.boolean :send_email_notification, :default => 1
+
+ t.timestamps
+ end
end
def self.down
drop_table :speakers
drop_table :discussions
drop_table :messages
+ drop_table :inboxes_settings
end
end