Add receives_notifications flag to enterprise_roles

This commit is contained in:
Matt-Yorkley
2017-07-28 16:10:05 +01:00
committed by Rob Harrington
parent 27de66b055
commit 9ccb3ee80b
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
class AddReceivesNotificationsToEnterpriseRoles < ActiveRecord::Migration
def change
add_column :enterprise_roles, :receives_notifications, :boolean, default: false
end
end

View File

@@ -199,6 +199,7 @@ ActiveRecord::Schema.define(:version => 20170921065259) do
create_table "enterprise_roles", :force => true do |t|
t.integer "user_id"
t.integer "enterprise_id"
t.boolean "receives_notifications", :default => false
end
add_index "enterprise_roles", ["enterprise_id", "user_id"], :name => "index_enterprise_roles_on_enterprise_id_and_user_id", :unique => true