Update annotations.

This commit is contained in:
Guo Xiang Tan 2017-03-22 14:26:53 +08:00
parent da7a44064b
commit e8fc8f0bb6
7 changed files with 48 additions and 8 deletions

View File

@ -550,12 +550,17 @@ end
# auto_close_based_on_last_post :boolean default(FALSE)
# topic_template :text
# suppress_from_homepage :boolean default(FALSE)
# all_topics_wiki :boolean default(FALSE)
# contains_messages :boolean
# sort_order :string
# sort_ascending :boolean
# uploaded_logo_id :integer
# uploaded_background_id :integer
# topic_featured_link_allowed :boolean default(TRUE)
# all_topics_wiki :boolean default(FALSE), not null
# show_subcategory_list :boolean default(FALSE)
# num_featured_topics :integer default(3)
# default_view :string(50)
# subcategory_list_style :string(50) default("rows_with_featured_topics")
#
# Indexes
#

View File

@ -4,3 +4,18 @@ class CustomEmoji < ActiveRecord::Base
validates :name, presence: true, uniqueness: true
validates :upload_id, presence: true
end
# == Schema Information
#
# Table name: custom_emojis
#
# id :integer not null, primary key
# name :string not null
# upload_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_custom_emojis_on_name (name) UNIQUE
#

View File

@ -1263,6 +1263,7 @@ end
# pinned_until :datetime
# fancy_title :string(400)
# highest_staff_post_number :integer default(0), not null
# featured_link :string
#
# Indexes
#

View File

@ -64,6 +64,7 @@ end
# Indexes
#
# index_topic_views_on_topic_id_and_viewed_at (topic_id,viewed_at)
# index_topic_views_on_user_id_and_viewed_at (user_id,viewed_at)
# index_topic_views_on_viewed_at_and_topic_id (viewed_at,topic_id)
# ip_address_topic_id_topic_views (ip_address,topic_id) UNIQUE
# user_id_topic_id_topic_views (user_id,topic_id) UNIQUE

View File

@ -1092,7 +1092,7 @@ end
# username :string(60) not null
# created_at :datetime not null
# updated_at :datetime not null
# name :string(255)
# name :string
# seen_notification_id :integer default(0), not null
# last_posted_at :datetime
# email :string(513) not null
@ -1100,7 +1100,6 @@ end
# salt :string(32)
# active :boolean default(FALSE), not null
# username_lower :string(60) not null
# auth_token :string(32)
# last_seen_at :datetime
# admin :boolean default(FALSE), not null
# last_emailed_at :datetime
@ -1117,7 +1116,7 @@ end
# ip_address :inet
# moderator :boolean default(FALSE)
# blocked :boolean default(FALSE)
# title :string(255)
# title :string
# uploaded_avatar_id :integer
# locale :string(10)
# primary_group_id :integer
@ -1125,13 +1124,11 @@ end
# trust_level_locked :boolean default(FALSE), not null
# staged :boolean default(FALSE), not null
# first_seen_at :datetime
# auth_token_updated_at :datetime
#
# Indexes
#
# idx_users_admin (id)
# idx_users_moderator (id)
# index_users_on_auth_token (auth_token)
# index_users_on_last_posted_at (last_posted_at)
# index_users_on_last_seen_at (last_seen_at)
# index_users_on_uploaded_avatar_id (uploaded_avatar_id)

View File

@ -177,12 +177,18 @@ end
# id :integer not null, primary key
# user_id :integer not null
# auth_token :string not null
# prev_auth_token :string
# prev_auth_token :string not null
# user_agent :string
# auth_token_seen :boolean default(FALSE), not null
# legacy :boolean default(FALSE), not null
# client_ip :inet
# rotated_at :datetime
# rotated_at :datetime not null
# created_at :datetime
# updated_at :datetime
# seen_at :datetime
#
# Indexes
#
# index_user_auth_tokens_on_auth_token (auth_token) UNIQUE
# index_user_auth_tokens_on_prev_auth_token (prev_auth_token) UNIQUE
#

View File

@ -1,2 +1,17 @@
class UserAuthTokenLog < ActiveRecord::Base
end
# == Schema Information
#
# Table name: user_auth_token_logs
#
# id :integer not null, primary key
# action :string not null
# user_auth_token_id :integer
# user_id :integer
# client_ip :inet
# user_agent :string
# auth_token :string
# created_at :datetime
# path :string
#