Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
21
db/migrate/20140920094058_insert_builtin_groups.rb
Normal file
21
db/migrate/20140920094058_insert_builtin_groups.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
class InsertBuiltinGroups < ActiveRecord::Migration
|
||||
def up
|
||||
Group.reset_column_information
|
||||
|
||||
unless GroupAnonymous.any?
|
||||
g = GroupAnonymous.new(:lastname => 'Anonymous users')
|
||||
g.status = 1
|
||||
g.save :validate => false
|
||||
end
|
||||
unless GroupNonMember.any?
|
||||
g = GroupNonMember.new(:lastname => 'Non member users')
|
||||
g.status = 1
|
||||
g.save :validate => false
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
GroupAnonymous.delete_all
|
||||
GroupNonMember.delete_all
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue