Update annotate and annotate models

This commit is contained in:
Sam Saffron 2016-01-11 17:30:56 +11:00
parent 6fabb341f1
commit c2e45c8377
10 changed files with 82 additions and 9 deletions

View File

@ -38,8 +38,8 @@ GEM
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
annotate (2.6.10)
activerecord (>= 3.2, <= 4.3)
annotate (2.7.0)
activerecord (>= 3.2, < 6.0)
rake (~> 10.4)
arel (6.0.3)
aws-sdk (2.1.29)

View File

@ -474,6 +474,7 @@ end
# auto_close_based_on_last_post :boolean default(FALSE)
# topic_template :text
# suppress_from_homepage :boolean default(FALSE)
# contains_messages :boolean default(FALSE), not null
#
# Indexes
#

View File

@ -108,3 +108,8 @@ end
# user_id :integer not null
# notification_level :integer not null
#
# Indexes
#
# idx_category_users_u1 (user_id,category_id,notification_level) UNIQUE
# idx_category_users_u2 (category_id,user_id,notification_level) UNIQUE
#

View File

@ -442,8 +442,11 @@ end
# primary_group :boolean default(FALSE), not null
# title :string(255)
# grant_trust_level :integer
# incoming_email :string
# has_messages :boolean default(FALSE), not null
#
# Indexes
#
# index_groups_on_incoming_email (incoming_email) UNIQUE
# index_groups_on_name (name) UNIQUE
#

View File

@ -2,3 +2,18 @@ class GroupArchivedMessage < ActiveRecord::Base
belongs_to :user
belongs_to :topic
end
# == Schema Information
#
# Table name: group_archived_messages
#
# id :integer not null, primary key
# group_id :integer not null
# topic_id :integer not null
# created_at :datetime
# updated_at :datetime
#
# Indexes
#
# index_group_archived_messages_on_group_id_and_topic_id (group_id,topic_id) UNIQUE
#

View File

@ -2,3 +2,19 @@ class GroupMention < ActiveRecord::Base
belongs_to :post
belongs_to :group
end
# == Schema Information
#
# Table name: group_mentions
#
# id :integer not null, primary key
# post_id :integer
# group_id :integer
# created_at :datetime
# updated_at :datetime
#
# Indexes
#
# index_group_mentions_on_group_id_and_post_id (group_id,post_id) UNIQUE
# index_group_mentions_on_post_id_and_group_id (post_id,group_id) UNIQUE
#

View File

@ -67,6 +67,7 @@ end
# created_at :datetime not null
# updated_at :datetime not null
# owner :boolean default(FALSE), not null
# notification_level :integer default(3), not null
#
# Indexes
#

View File

@ -22,3 +22,19 @@ class TranslationOverride < ActiveRecord::Base
end
end
# == Schema Information
#
# Table name: translation_overrides
#
# id :integer not null, primary key
# locale :string not null
# translation_key :string not null
# value :string not null
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_translation_overrides_on_locale_and_translation_key (locale,translation_key) UNIQUE
#

View File

@ -1091,6 +1091,7 @@ end
# edit_history_public :boolean default(FALSE), not null
# trust_level_locked :boolean default(FALSE), not null
# staged :boolean default(FALSE), not null
# automatically_unpin_topics :boolean default(TRUE)
#
# Indexes
#

View File

@ -2,3 +2,18 @@ class UserArchivedMessage < ActiveRecord::Base
belongs_to :user
belongs_to :topic
end
# == Schema Information
#
# Table name: user_archived_messages
#
# id :integer not null, primary key
# user_id :integer not null
# topic_id :integer not null
# created_at :datetime
# updated_at :datetime
#
# Indexes
#
# index_user_archived_messages_on_user_id_and_topic_id (user_id,topic_id) UNIQUE
#