DEV: annotate models

This commit is contained in:
Arpit Jalan 2020-04-28 15:59:39 +05:30
parent 6b62d75c50
commit 198856f78d
6 changed files with 21 additions and 4 deletions

View File

@ -14,9 +14,9 @@ end
# id :integer not null, primary key
# name :string not null
# upload_id :integer not null
# group :string
# created_at :datetime not null
# updated_at :datetime not null
# group :string(20)
#
# Indexes
#

View File

@ -46,3 +46,19 @@ class PublishedPage < ActiveRecord::Base
end
end
end
# == Schema Information
#
# Table name: published_pages
#
# id :bigint not null, primary key
# topic_id :bigint not null
# slug :string not null
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_published_pages_on_slug (slug) UNIQUE
# index_published_pages_on_topic_id (topic_id) UNIQUE
#

View File

@ -17,6 +17,7 @@ end
#
# Indexes
#
# idx_topic_custom_fields_accepted_answer (topic_id) UNIQUE WHERE ((name)::text = 'accepted_answer_post_id'::text)
# index_topic_custom_fields_on_topic_id_and_name (topic_id,name)
# topic_custom_fields_value_key_idx (value,name) WHERE ((value IS NOT NULL) AND (char_length(value) < 400))
#

View File

@ -178,6 +178,7 @@ end
# updated_at :datetime not null
# category_id :integer
# public_type :boolean default(TRUE)
# duration :integer
#
# Indexes
#

View File

@ -101,6 +101,7 @@ end
# notification_id :integer
# seq :integer default(0), not null
# featured_rank :integer
# created_at :datetime not null
#
# Indexes
#

View File

@ -17,7 +17,5 @@ end
#
# Indexes
#
# idx_user_custom_fields_last_reminded_at (name,user_id) UNIQUE WHERE ((name)::text = 'last_reminded_at'::text)
# idx_user_custom_fields_remind_assigns_frequency (name,user_id) UNIQUE WHERE ((name)::text = 'remind_assigns_frequency'::text)
# index_user_custom_fields_on_user_id_and_name (user_id,name)
# index_user_custom_fields_on_user_id_and_name (user_id,name)
#