table & model changes for group managers with permission to edit membership

This commit is contained in:
Jason W. May
2015-01-08 15:35:52 -08:00
parent 20d2908c50
commit a2b284a0a4
11 changed files with 205 additions and 0 deletions

View 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