annotate models
This commit is contained in:
parent
4da9a434fd
commit
236d8193bd
|
@ -160,5 +160,5 @@ end
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_directory_items_on_period_type (period_type)
|
# index_directory_items_on_period_type_and_user_id (period_type,user_id) UNIQUE
|
||||||
#
|
#
|
||||||
|
|
|
@ -7,3 +7,22 @@ class EmailChangeRequest < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
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)
|
||||||
|
#
|
||||||
|
|
|
@ -32,3 +32,18 @@ class GivenDailyLike < ActiveRecord::Base
|
||||||
.update_all(limit_reached: false)
|
.update_all(limit_reached: false)
|
||||||
end
|
end
|
||||||
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
|
||||||
|
#
|
||||||
|
|
|
@ -10,19 +10,20 @@ end
|
||||||
#
|
#
|
||||||
# Table name: incoming_emails
|
# Table name: incoming_emails
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer
|
# user_id :integer
|
||||||
# topic_id :integer
|
# topic_id :integer
|
||||||
# post_id :integer
|
# post_id :integer
|
||||||
# raw :text
|
# raw :text
|
||||||
# error :text
|
# error :text
|
||||||
# message_id :text
|
# message_id :text
|
||||||
# from_address :text
|
# from_address :text
|
||||||
# to_addresses :text
|
# to_addresses :text
|
||||||
# cc_addresses :text
|
# cc_addresses :text
|
||||||
# subject :text
|
# subject :text
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
# rejection_message :text
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -3,3 +3,15 @@ class InstagramUserInfo < ActiveRecord::Base
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
||||||
end
|
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
|
||||||
|
#
|
||||||
|
|
|
@ -146,7 +146,10 @@ end
|
||||||
# auto_track_topics_after_msecs :integer
|
# auto_track_topics_after_msecs :integer
|
||||||
# new_topic_duration_minutes :integer
|
# new_topic_duration_minutes :integer
|
||||||
# last_redirected_to_top_at :datetime
|
# 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
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue