annotate models

This commit is contained in:
Sam 2016-03-28 15:21:45 +11:00
parent 4da9a434fd
commit 236d8193bd
6 changed files with 65 additions and 15 deletions

View File

@ -160,5 +160,5 @@ end
#
# Indexes
#
# index_directory_items_on_period_type (period_type)
# index_directory_items_on_period_type_and_user_id (period_type,user_id) UNIQUE
#

View File

@ -7,3 +7,22 @@ class EmailChangeRequest < ActiveRecord::Base
end
end
# == Schema Information
#
# Table name: email_change_requests
#
# id :integer not null, primary key
# user_id :integer not null
# old_email :string not null
# new_email :string not null
# old_email_token_id :integer
# new_email_token_id :integer
# change_state :integer not null
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_email_change_requests_on_user_id (user_id)
#

View File

@ -32,3 +32,18 @@ class GivenDailyLike < ActiveRecord::Base
.update_all(limit_reached: false)
end
end
# == Schema Information
#
# Table name: given_daily_likes
#
# user_id :integer not null
# likes_given :integer not null
# given_date :date not null
# limit_reached :boolean default(FALSE), not null
#
# Indexes
#
# index_given_daily_likes_on_limit_reached_and_user_id (limit_reached,user_id)
# index_given_daily_likes_on_user_id_and_given_date (user_id,given_date) UNIQUE
#

View File

@ -10,19 +10,20 @@ end
#
# Table name: incoming_emails
#
# id :integer not null, primary key
# user_id :integer
# topic_id :integer
# post_id :integer
# raw :text
# error :text
# message_id :text
# from_address :text
# to_addresses :text
# cc_addresses :text
# subject :text
# created_at :datetime not null
# updated_at :datetime not null
# id :integer not null, primary key
# user_id :integer
# topic_id :integer
# post_id :integer
# raw :text
# error :text
# message_id :text
# from_address :text
# to_addresses :text
# cc_addresses :text
# subject :text
# created_at :datetime not null
# updated_at :datetime not null
# rejection_message :text
#
# Indexes
#

View File

@ -3,3 +3,15 @@ class InstagramUserInfo < ActiveRecord::Base
belongs_to :user
end
# == Schema Information
#
# Table name: instagram_user_infos
#
# id :integer not null, primary key
# user_id :integer
# screen_name :string
# instagram_user_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#

View File

@ -146,7 +146,10 @@ end
# auto_track_topics_after_msecs :integer
# new_topic_duration_minutes :integer
# last_redirected_to_top_at :datetime
# email_previous_replies :integer default(1), not null
# email_previous_replies :integer default(2), not null
# email_in_reply_to :boolean default(TRUE), not null
# like_notification_frequency :integer default(1), not null
# include_tl0_in_digests :boolean default(FALSE)
#
# Indexes
#