annotate models

(reminder run RAILS_ENV=test bin/annotate once in a while)
This commit is contained in:
Sam 2016-05-30 10:45:32 +10:00
parent e922db82fb
commit 089b1d164c
11 changed files with 85 additions and 14 deletions

View file

@ -73,6 +73,8 @@ end
# topic_id :integer
# skipped :boolean default(FALSE)
# skipped_reason :string
# bounce_key :string
# bounced :boolean default(FALSE), not null
#
# Indexes
#

View file

@ -24,10 +24,13 @@ end
# created_at :datetime not null
# updated_at :datetime not null
# rejection_message :text
# is_auto_generated :boolean default(FALSE)
# is_bounce :boolean default(FALSE), not null
#
# Indexes
#
# index_incoming_emails_on_created_at (created_at)
# index_incoming_emails_on_error (error)
# index_incoming_emails_on_message_id (message_id)
# index_incoming_emails_on_post_id (post_id)
#

View file

@ -1,2 +1,16 @@
class OnceoffLog < ActiveRecord::Base
end
# == Schema Information
#
# Table name: onceoff_logs
#
# id :integer not null, primary key
# job_name :string
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_onceoff_logs_on_job_name (job_name)
#

View file

@ -16,3 +16,18 @@ class Tag < ActiveRecord::Base
.map {|name, count| name}
end
end
# == Schema Information
#
# Table name: tags
#
# id :integer not null, primary key
# name :string not null
# topic_count :integer default(0), not null
# created_at :datetime
# updated_at :datetime
#
# Indexes
#
# index_tags_on_name (name) UNIQUE
#

View file

@ -93,3 +93,20 @@ class TagUser < ActiveRecord::Base
private_class_method :apply_default_to_topic, :remove_default_from_topic
end
# == Schema Information
#
# Table name: tag_users
#
# id :integer not null, primary key
# tag_id :integer not null
# user_id :integer not null
# notification_level :integer not null
# created_at :datetime
# updated_at :datetime
#
# Indexes
#
# idx_tag_users_ix1 (user_id,tag_id,notification_level) UNIQUE
# idx_tag_users_ix2 (tag_id,user_id,notification_level) UNIQUE
#

View file

@ -16,5 +16,5 @@ end
# Indexes
#
# index_topic_custom_fields_on_topic_id_and_name (topic_id,name)
# index_topic_custom_fields_on_value (value)
# topic_custom_fields_value_key_idx (value,name)
#

View file

@ -2,3 +2,18 @@ class TopicTag < ActiveRecord::Base
belongs_to :topic
belongs_to :tag, counter_cache: "topic_count"
end
# == Schema Information
#
# Table name: topic_tags
#
# id :integer not null, primary key
# topic_id :integer not null
# tag_id :integer not null
# created_at :datetime
# updated_at :datetime
#
# Indexes
#
# index_topic_tags_on_topic_id_and_tag_id (topic_id,tag_id) UNIQUE
#

View file

@ -41,6 +41,7 @@ end
# value :string not null
# created_at :datetime not null
# updated_at :datetime not null
# compiled_js :text
#
# Indexes
#

View file

@ -1037,6 +1037,7 @@ end
# registration_ip_address :inet
# trust_level_locked :boolean default(FALSE), not null
# staged :boolean default(FALSE), not null
# first_seen_at :datetime
#
# Indexes
#

View file

@ -151,6 +151,7 @@ end
# email_in_reply_to :boolean default(TRUE), not null
# like_notification_frequency :integer default(1), not null
# include_tl0_in_digests :boolean default(FALSE)
# mailing_list_mode_frequency :integer default(0), not null
#
# Indexes
#

View file

@ -103,17 +103,19 @@ end
#
# Table name: user_stats
#
# user_id :integer not null, primary key
# topics_entered :integer default(0), not null
# time_read :integer default(0), not null
# days_visited :integer default(0), not null
# posts_read_count :integer default(0), not null
# likes_given :integer default(0), not null
# likes_received :integer default(0), not null
# topic_reply_count :integer default(0), not null
# new_since :datetime not null
# read_faq :datetime
# first_post_created_at :datetime
# post_count :integer default(0), not null
# topic_count :integer default(0), not null
# user_id :integer not null, primary key
# topics_entered :integer default(0), not null
# time_read :integer default(0), not null
# days_visited :integer default(0), not null
# posts_read_count :integer default(0), not null
# likes_given :integer default(0), not null
# likes_received :integer default(0), not null
# topic_reply_count :integer default(0), not null
# new_since :datetime not null
# read_faq :datetime
# first_post_created_at :datetime
# post_count :integer default(0), not null
# topic_count :integer default(0), not null
# bounce_score :integer default(0), not null
# reset_bounce_score_after :datetime
#