A platform for community discussion. Free, open, simple.
DEV: annotate models
Sam Saffron3314aa9f8883
diff --git a/app/models/reviewable_score.rb b/app/models/reviewable_score.rbindex cbe561f355c..1fd9d2d7ebf 100644--- a/app/models/reviewable_score.rb+++ b/app/models/reviewable_score.rb@@ -116,6 +116,7 @@ end# created_at :datetime not null# updated_at :datetime not null# reason :string+# user_accuracy_bonus :float default(0.0), not null## Indexes#diff --git a/app/models/topic_group.rb b/app/models/topic_group.rbindex b69016a94e0..a2c60e1f5f2 100644--- a/app/models/topic_group.rb+++ b/app/models/topic_group.rb@@ -60,12 +60,14 @@ end## Table name: topic_groups#-# id :integer not null, primary key-# group_id :integer not null-# topic_id :integer not null-# last_read_post_number :integer default(0), not null+# id :bigint not null, primary key+# group_id :integer not null+# topic_id :integer not null+# last_read_post_number :integer default(0), not null+# created_at :datetime not null+# updated_at :datetime not null## Indexes#-# index_topic_allowed_groups_on_group_id_and_topic_id (group_id,topic_id) UNIQUE+# index_topic_groups_on_group_id_and_topic_id (group_id,topic_id) UNIQUE#diff --git a/app/models/user.rb b/app/models/user.rbindex af28a89a0ee..7ed158b2a22 100644--- a/app/models/user.rb+++ b/app/models/user.rb@@ -1563,6 +1563,7 @@ end# silenced_till :datetime# group_locked_trust_level :integer# manual_locked_trust_level :integer+# secure_identifier :string## Indexes#@@ -1570,6 +1571,7 @@ end# idx_users_moderator (id) WHERE moderator# index_users_on_last_posted_at (last_posted_at)# index_users_on_last_seen_at (last_seen_at)+# index_users_on_secure_identifier (secure_identifier) UNIQUE# index_users_on_uploaded_avatar_id (uploaded_avatar_id)# index_users_on_username (username) UNIQUE# index_users_on_username_lower (username_lower) UNIQUEdiff --git a/app/models/user_security_key.rb b/app/models/user_security_key.rbindex 61f325bd0de..229dbbdf968 100644--- a/app/models/user_security_key.rb+++ b/app/models/user_security_key.rb@@ -21,18 +21,26 @@ end# Table name: user_security_keys## id :bigint not null, primary key-# user_id :integer not null-# factor_type :integer not null-# credential_id :string not null, UNIQUE+# user_id :bigint not null+# credential_id :string not null# public_key :string not null-# enabled :boolean default(FALSE), not null+# factor_type :integer default(0), not null+# enabled :boolean default(TRUE), not null+# name :string not null# last_used :datetime# created_at :datetime not null# updated_at :datetime not null-# name :string not null## Indexes#-# index_user_security_keys_on_credential_id (credential_id) (UNIQUE)-# index_user_security_keys_on_factor_type (factor_type)+# index_user_security_keys_on_credential_id (credential_id) UNIQUE+# index_user_security_keys_on_factor_type (factor_type)+# index_user_security_keys_on_factor_type_and_enabled (factor_type,enabled)+# index_user_security_keys_on_last_used (last_used)+# index_user_security_keys_on_public_key (public_key)+# index_user_security_keys_on_user_id (user_id)+#+# Foreign Keys+#+# fk_rails_... (user_id => users.id)#