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:
Sam
2013-05-09 17:37:34 +10:00
parent 4f328e3e45
commit 5280b3a01b
27 changed files with 224 additions and 61 deletions

View 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

View File

@ -0,0 +1,5 @@
class AddUniqueNameToGroups < ActiveRecord::Migration
def change
add_index :groups, [:name], unique: true
end
end