From 04fdada96a2582d86acaac38a916f8821362595c Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Wed, 29 May 2019 14:26:13 +1000 Subject: [PATCH] annotate models --- app/models/post_action_type.rb | 17 +++++++++-------- app/models/topic_custom_field.rb | 1 - 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/models/post_action_type.rb b/app/models/post_action_type.rb index 121db590aa3..a15ac36fd07 100644 --- a/app/models/post_action_type.rb +++ b/app/models/post_action_type.rb @@ -127,12 +127,13 @@ end # # Table name: post_action_types # -# name_key :string(50) not null -# is_flag :boolean default(FALSE), not null -# icon :string(20) -# created_at :datetime not null -# updated_at :datetime not null -# id :integer not null, primary key -# position :integer default(0), not null -# score_bonus :float default(0.0), not null +# name_key :string(50) not null +# is_flag :boolean default(FALSE), not null +# icon :string(20) +# created_at :datetime not null +# updated_at :datetime not null +# id :integer not null, primary key +# position :integer default(0), not null +# score_bonus :float default(0.0), not null +# reviewable_priority :integer default(0), not null # diff --git a/app/models/topic_custom_field.rb b/app/models/topic_custom_field.rb index 0bb4b7123a8..ba5767084e5 100644 --- a/app/models/topic_custom_field.rb +++ b/app/models/topic_custom_field.rb @@ -18,6 +18,5 @@ end # Indexes # # index_topic_custom_fields_on_topic_id_and_name (topic_id,name) -# index_topic_custom_fields_on_value (value) UNIQUE WHERE ((name)::text = 'commit hash'::text) # topic_custom_fields_value_key_idx (value,name) WHERE ((value IS NOT NULL) AND (char_length(value) < 400)) #