@@ -1,5 +1,6 | |||||
1 | class InsertBuiltinRoles < ActiveRecord::Migration |
|
1 | class InsertBuiltinRoles < ActiveRecord::Migration | |
2 | def self.up |
|
2 | def self.up | |
|
3 | Role.reset_column_information | |||
3 | nonmember = Role.new(:name => 'Non member', :position => 0) |
|
4 | nonmember = Role.new(:name => 'Non member', :position => 0) | |
4 | nonmember.builtin = Role::BUILTIN_NON_MEMBER |
|
5 | nonmember.builtin = Role::BUILTIN_NON_MEMBER | |
5 | nonmember.save |
|
6 | nonmember.save |
General Comments 0
You need to be logged in to leave comments.
Login now