mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 14:52:46 +08:00
DEV: annotate models
This commit is contained in:
parent
6b62d75c50
commit
198856f78d
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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))
|
||||
#
|
||||
|
|
|
@ -178,6 +178,7 @@ end
|
|||
# updated_at :datetime not null
|
||||
# category_id :integer
|
||||
# public_type :boolean default(TRUE)
|
||||
# duration :integer
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
|
|
|
@ -101,6 +101,7 @@ end
|
|||
# notification_id :integer
|
||||
# seq :integer default(0), not null
|
||||
# featured_rank :integer
|
||||
# created_at :datetime not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
|
|
|
@ -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)
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue
Block a user