mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add receives_notifications flag to enterprise_roles
This commit is contained in:
committed by
Rob Harrington
parent
27de66b055
commit
9ccb3ee80b
@@ -0,0 +1,5 @@
|
||||
class AddReceivesNotificationsToEnterpriseRoles < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :enterprise_roles, :receives_notifications, :boolean, default: false
|
||||
end
|
||||
end
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user