chore: Add description field in custom attribute model (#2872)

This commit is contained in:
Muhsin Keloth 2021-08-24 21:17:23 +05:30 committed by GitHub
parent 09e3413d10
commit 1257f86f22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -0,0 +1,5 @@
class AddDescriptionToCustomAttributeDefinition < ActiveRecord::Migration[6.1]
def change
add_column :custom_attribute_definitions, :attribute_description, :text
end
end

View file

@ -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