User groups branch merged.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2869 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
847c7367b4
commit
7707457145
47 files changed
+920
-90
No files matched your search
@@ -0,0 +1,8 @@
|
||||
class PopulateUsersType < ActiveRecord::Migration
|
||||
def self.up
|
||||
Principal.update_all("type = 'User'", "type IS NULL")
|
||||
end
|
||||
|
||||
def self.down
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,13 @@
|
||||
class CreateGroupsUsers < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :groups_users, :id => false do |t|
|
||||
t.column :group_id, :integer, :null => false
|
||||
t.column :user_id, :integer, :null => false
|
||||
end
|
||||
add_index :groups_users, [:group_id, :user_id], :unique => true, :name => :groups_users_ids
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :groups_users
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
class AddMemberRolesInheritedFrom < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :member_roles, :inherited_from, :integer
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :member_roles, :inherited_from
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user