A platform for community discussion. Free, open, simple.
DEV: annotate models
Arpit Jalan198856f78de4
diff --git a/app/models/custom_emoji.rb b/app/models/custom_emoji.rbindex 118615c98e7..809b4ba6c03 100644--- a/app/models/custom_emoji.rb+++ b/app/models/custom_emoji.rb@@ -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#diff --git a/app/models/published_page.rb b/app/models/published_page.rbindex 3c232b6547e..648f6b8b50c 100644--- a/app/models/published_page.rb+++ b/app/models/published_page.rb@@ -46,3 +46,19 @@ class PublishedPage < ActiveRecord::Baseendendend++# == 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+#diff --git a/app/models/topic_custom_field.rb b/app/models/topic_custom_field.rbindex ba5767084e5..e922b7b26e3 100644--- a/app/models/topic_custom_field.rb+++ b/app/models/topic_custom_field.rb@@ -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))#diff --git a/app/models/topic_timer.rb b/app/models/topic_timer.rbindex c8274da9f56..20e3bb67f97 100644--- a/app/models/topic_timer.rb+++ b/app/models/topic_timer.rb@@ -178,6 +178,7 @@ end# updated_at :datetime not null# category_id :integer# public_type :boolean default(TRUE)+# duration :integer## Indexes#diff --git a/app/models/user_badge.rb b/app/models/user_badge.rbindex 5f4a3fcd077..082f645c719 100644--- a/app/models/user_badge.rb+++ b/app/models/user_badge.rb@@ -101,6 +101,7 @@ end# notification_id :integer# seq :integer default(0), not null# featured_rank :integer+# created_at :datetime not null## Indexes#diff --git a/app/models/user_custom_field.rb b/app/models/user_custom_field.rbindex bba98cd9b49..0fb77e5f634 100644--- a/app/models/user_custom_field.rb+++ b/app/models/user_custom_field.rb@@ -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)#