mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
table & model changes for group managers with permission to edit membership
This commit is contained in:
11
db/migrate/20150108221703_group_managers.rb
Normal file
11
db/migrate/20150108221703_group_managers.rb
Normal file
@ -0,0 +1,11 @@
|
||||
class GroupManagers < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :group_managers do |t|
|
||||
t.integer :group_id, null: false
|
||||
t.integer :user_id, null: false
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :group_managers, [:group_id, :user_id], unique: true
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user