OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/db/migrate/20091123144305_add_permissi...

15 lines
510 B

class AddPermissionInheritance < ActiveRecord::Migration
def self.up
add_column :groups_users, :membership_type, :string, :default => 'default'
add_column :member_roles, :membership_type, :string, :default => 'default'
GroupUser.all.update_attribute!(:membership_type => "controller")
MemberRole.all.update_attribute!(:membership_type => "controller")
end
def self.down
remove_column :groups_users, :membership_type
remove_column :member_roles, :membership_type
end
end