diff options
Diffstat (limited to 'db/migrate/018_set_doc_and_files_notifications.rb')
-rw-r--r-- | db/migrate/018_set_doc_and_files_notifications.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/db/migrate/018_set_doc_and_files_notifications.rb b/db/migrate/018_set_doc_and_files_notifications.rb index adbdd3b88..8c1d054c1 100644 --- a/db/migrate/018_set_doc_and_files_notifications.rb +++ b/db/migrate/018_set_doc_and_files_notifications.rb @@ -1,4 +1,7 @@ class SetDocAndFilesNotifications < ActiveRecord::Migration + # model removed + class Permission < ActiveRecord::Base; end + def self.up Permission.find_by_controller_and_action("projects", "add_file").update_attribute(:mail_option, true) Permission.find_by_controller_and_action("projects", "add_document").update_attribute(:mail_option, true) |