added 2 new flag types: notify user and notify moderators

fixed up messed up user navigation
refactored
This commit is contained in:
Sam
2013-04-12 17:55:45 +10:00
parent 0f362c5474
commit e969eb14e8
20 changed files with 201 additions and 74 deletions

View File

@ -42,8 +42,15 @@ PostActionType.seed do |s|
end
PostActionType.seed do |s|
s.id = PostActionType.types[:custom_flag]
s.name_key = 'custom_flag'
s.id = PostActionType.types[:notify_user]
s.name_key = 'notify_user'
s.is_flag = true
s.position = 7
end
PostActionType.seed do |s|
s.id = PostActionType.types[:notify_moderators]
s.name_key = 'notify_moderators'
s.is_flag = true
s.position = 8
end

View File

@ -0,0 +1,6 @@
class CorrectCountsOnPosts < ActiveRecord::Migration
def change
rename_column :posts, :custom_flag_count, :notify_moderators_count
add_column :posts, :notify_user_count, :integer, default: 0, null: false
end
end

View File

@ -0,0 +1,6 @@
class CorrectCountsOnTopics < ActiveRecord::Migration
def change
rename_column :topics, :custom_flag_count, :notify_moderators_count
add_column :topics, :notify_user_count, :integer, default: 0, null: false
end
end