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 # topic_id :integer
# skipped :boolean default(FALSE) # skipped :boolean default(FALSE)
# skipped_reason :string # skipped_reason :string
# bounce_key :string
# bounced :boolean default(FALSE), not null
# #
# Indexes # Indexes
# #

View File

@ -24,10 +24,13 @@ end
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# rejection_message :text # rejection_message :text
# is_auto_generated :boolean default(FALSE)
# is_bounce :boolean default(FALSE), not null
# #
# Indexes # Indexes
# #
# index_incoming_emails_on_created_at (created_at) # index_incoming_emails_on_created_at (created_at)
# index_incoming_emails_on_error (error) # index_incoming_emails_on_error (error)
# index_incoming_emails_on_message_id (message_id) # 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 class OnceoffLog < ActiveRecord::Base
end 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} .map {|name, count| name}
end end
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 private_class_method :apply_default_to_topic, :remove_default_from_topic
end 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 # Indexes
# #
# index_topic_custom_fields_on_topic_id_and_name (topic_id,name) # 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 :topic
belongs_to :tag, counter_cache: "topic_count" belongs_to :tag, counter_cache: "topic_count"
end 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 # value :string not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# compiled_js :text
# #
# Indexes # Indexes
# #

View File

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

View File

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

View File

@ -116,4 +116,6 @@ end
# first_post_created_at :datetime # first_post_created_at :datetime
# post_count :integer default(0), not null # post_count :integer default(0), not null
# topic_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
# #