discourse/db/migrate/20151107042241_add_owner_to_group_users.rb
Sam Saffron 6dd4bc7d57 FEATURE: support group owner, capable of controlling group membership
Group owners are regular users that can add or remove users to a group
The Admin UX allows admins to appoint group owners
The public group UX will display group owners first and unlock UI to
add and remove members

Group owners can only be appointed on non automatic groups
Group owners may not appoint another group owner
2015-11-10 00:56:57 +11:00

5 lines
151 B
Ruby

class AddOwnerToGroupUsers < ActiveRecord::Migration
def change
add_column :group_users, :owner, :boolean, null: false, default: false
end
end