A platform for community discussion. Free, open, simple.
DEV: annotate models
Arpit Jalan2152e70e0d81
diff --git a/app/models/bookmark.rb b/app/models/bookmark.rbindex 3125f8f9fed..c90af0f147b 100644--- a/app/models/bookmark.rb+++ b/app/models/bookmark.rb@@ -90,7 +90,7 @@ end# updated_at :datetime not null# reminder_last_sent_at :datetime# reminder_set_at :datetime-# delete_when_reminder_sent :boolean default(FALSE)+# delete_when_reminder_sent :boolean default(FALSE), not null## Indexes#@@ -102,9 +102,3 @@ end# index_bookmarks_on_user_id (user_id)# index_bookmarks_on_user_id_and_post_id (user_id,post_id) UNIQUE#-# Foreign Keys-#-# fk_rails_... (post_id => posts.id)-# fk_rails_... (topic_id => topics.id)-# fk_rails_... (user_id => users.id)-#diff --git a/app/models/category.rb b/app/models/category.rbindex 6ecfe9d3afe..d6375eb7144 100644--- a/app/models/category.rb+++ b/app/models/category.rb@@ -972,6 +972,7 @@ end# required_tag_group_id :integer# min_tags_from_required_group :integer default(1), not null# read_only_banner :string+# default_list_filter :string(20) default("all")## Indexes#diff --git a/app/models/group.rb b/app/models/group.rbindex 89ce80bbf48..d99fb257212 100644--- a/app/models/group.rb+++ b/app/models/group.rb@@ -923,7 +923,6 @@ end# grant_trust_level :integer# incoming_email :string# has_messages :boolean default(FALSE), not null-# flair_url :string# flair_bg_color :string# flair_color :string# bio_raw :text@@ -934,11 +933,13 @@ end# visibility_level :integer default(0), not null# public_exit :boolean default(FALSE), not null# public_admission :boolean default(FALSE), not null-# publish_read_state :boolean default(FALSE), not null# membership_request_template :text# messageable_level :integer default(0)# mentionable_level :integer default(0)+# publish_read_state :boolean default(FALSE), not null# members_visibility_level :integer default(0), not null+# flair_icon :string+# flair_upload_id :integer## Indexes#diff --git a/app/models/theme_modifier_set.rb b/app/models/theme_modifier_set.rbindex 9fae7faf54a..781ea42f51f 100644--- a/app/models/theme_modifier_set.rb+++ b/app/models/theme_modifier_set.rb@@ -98,12 +98,12 @@ end## Table name: theme_modifier_sets#-# id :bigint not null, primary key-# theme_id :bigint not null-# serialize_topic_excerpts :boolean-# csp_extensions :string is an Array-# svg_icons :string is an Array-# topic_thumbnail_sizes :string is an Array+# id :bigint not null, primary key+# theme_id :bigint not null+# serialize_topic_excerpts :boolean+# csp_extensions :string is an Array+# svg_icons :string is an Array+# topic_thumbnail_sizes :string is an Array## Indexes#diff --git a/app/models/topic_custom_field.rb b/app/models/topic_custom_field.rbindex e922b7b26e3..ba5767084e5 100644--- a/app/models/topic_custom_field.rb+++ b/app/models/topic_custom_field.rb@@ -17,7 +17,6 @@ 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))#