diff --git a/app/models/category.rb b/app/models/category.rb index 6af0b8b877b..7d0d2ef199e 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -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 # diff --git a/app/models/custom_emoji.rb b/app/models/custom_emoji.rb index bdc2795846b..aa9f4b0e7af 100644 --- a/app/models/custom_emoji.rb +++ b/app/models/custom_emoji.rb @@ -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 +# diff --git a/app/models/topic.rb b/app/models/topic.rb index 4077ecd515c..437ddaf5341 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -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 # diff --git a/app/models/topic_view_item.rb b/app/models/topic_view_item.rb index 958abca8204..2b6fa6b49ce 100644 --- a/app/models/topic_view_item.rb +++ b/app/models/topic_view_item.rb @@ -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 diff --git a/app/models/user.rb b/app/models/user.rb index 9a359bd00a3..95ad684c706 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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) diff --git a/app/models/user_auth_token.rb b/app/models/user_auth_token.rb index d9139d88b2a..7a22ea5931c 100644 --- a/app/models/user_auth_token.rb +++ b/app/models/user_auth_token.rb @@ -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 # diff --git a/app/models/user_auth_token_log.rb b/app/models/user_auth_token_log.rb index a743a1bb287..532d363d737 100644 --- a/app/models/user_auth_token_log.rb +++ b/app/models/user_auth_token_log.rb @@ -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 +#