diff --git a/app/models/custom_attribute_definition.rb b/app/models/custom_attribute_definition.rb index 41fd40a2c..3c861696f 100644 --- a/app/models/custom_attribute_definition.rb +++ b/app/models/custom_attribute_definition.rb @@ -5,6 +5,7 @@ # id :bigint not null, primary key # attribute_display_name :string # attribute_display_type :integer default("text") +# attribute_description :text # attribute_key :string # attribute_model :integer default("conversation_attribute") # default_value :integer diff --git a/db/migrate/20210824152852_add_description_to_custom_attribute_definition.rb b/db/migrate/20210824152852_add_description_to_custom_attribute_definition.rb new file mode 100644 index 000000000..45ca3ba9f --- /dev/null +++ b/db/migrate/20210824152852_add_description_to_custom_attribute_definition.rb @@ -0,0 +1,5 @@ +class AddDescriptionToCustomAttributeDefinition < ActiveRecord::Migration[6.1] + def change + add_column :custom_attribute_definitions, :attribute_description, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index 238120369..a844bda7f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_07_23_095657) do +ActiveRecord::Schema.define(version: 2021_08_24_152852) do # These are extensions that must be enabled in order to support this database enable_extension "pg_stat_statements" @@ -311,6 +311,7 @@ ActiveRecord::Schema.define(version: 2021_07_23_095657) do t.bigint "account_id" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false + t.text "attribute_description" t.index ["account_id"], name: "index_custom_attribute_definitions_on_account_id" t.index ["attribute_key", "attribute_model"], name: "attribute_key_model_index", unique: true end