From fb801ab393a47cdc1bae3af063845f52dbdd258a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 30 May 2012 19:36:43 -0400 Subject: Settings: added a settings module so that users can turn email notifications for new messages on or off. --- lib/generators/inboxes/templates/install.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/generators') 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 -- cgit v1.2.3