A platform for community discussion. Free, open, simple.
DEV: annotate models
Arpit Jalandb4e31037648
diff --git a/app/models/bookmark.rb b/app/models/bookmark.rbindex c741877bdcb..1b00b4b4d43 100644--- a/app/models/bookmark.rb+++ b/app/models/bookmark.rb@@ -100,18 +100,18 @@ end## Table name: bookmarks#-# id :bigint not null, primary key-# user_id :bigint not null-# topic_id :bigint not null-# post_id :bigint not null-# name :string(100)-# reminder_type :integer-# reminder_at :datetime-# created_at :datetime not null-# updated_at :datetime not null-# reminder_last_sent_at :datetime-# reminder_set_at :datetime-# auto_delete_preference :integer+# id :bigint not null, primary key+# user_id :bigint not null+# topic_id :bigint not null+# post_id :bigint not null+# name :string(100)+# reminder_type :integer+# reminder_at :datetime+# created_at :datetime not null+# updated_at :datetime not null+# reminder_last_sent_at :datetime+# reminder_set_at :datetime+# auto_delete_preference :integer default(0), not null## Indexes#diff --git a/app/models/email_change_request.rb b/app/models/email_change_request.rbindex d5fd0e57d9c..4307cdb457f 100644--- a/app/models/email_change_request.rb+++ b/app/models/email_change_request.rb@@ -19,7 +19,7 @@ end## id :integer not null, primary key# user_id :integer not null-# old_email :string not null+# old_email :string# new_email :string not null# old_email_token_id :integer# new_email_token_id :integerdiff --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))#