mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 09:34:41 +08:00
more group progress, UI getting there, controller mostly done
changed it so notify moderators goes to the moderators group allow admins to grant self moderation and revoke self moderation
This commit is contained in:
11
db/migrate/20130509040248_update_sequence_for_groups.rb
Normal file
11
db/migrate/20130509040248_update_sequence_for_groups.rb
Normal file
@ -0,0 +1,11 @@
|
||||
class UpdateSequenceForGroups < ActiveRecord::Migration
|
||||
def up
|
||||
# even if you alter a sequence you still need to set the seq
|
||||
execute <<SQL
|
||||
SELECT setval('groups_id_seq', 40)
|
||||
SQL
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
5
db/migrate/20130509041351_add_unique_name_to_groups.rb
Normal file
5
db/migrate/20130509041351_add_unique_name_to_groups.rb
Normal file
@ -0,0 +1,5 @@
|
||||
class AddUniqueNameToGroups < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :groups, [:name], unique: true
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user