feat: Custom Attributes for contacts (#1158)

Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
Sojan Jose
2020-08-21 19:30:27 +05:30
committed by GitHub
parent 507b40a51d
commit cdd385b269
18 changed files with 182 additions and 21 deletions

View File

@@ -0,0 +1,5 @@
class AddCustomAttributesToContacts < ActiveRecord::Migration[6.0]
def change
add_column :contacts, :custom_attributes, :jsonb, default: {}
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: 2020_08_02_170002) do
ActiveRecord::Schema.define(version: 2020_08_19_190629) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
@@ -204,6 +204,7 @@ ActiveRecord::Schema.define(version: 2020_08_02_170002) do
t.string "pubsub_token"
t.jsonb "additional_attributes"
t.string "identifier"
t.jsonb "custom_attributes", default: {}
t.index ["account_id"], name: "index_contacts_on_account_id"
t.index ["email", "account_id"], name: "uniq_email_per_account_contact", unique: true
t.index ["identifier", "account_id"], name: "uniq_identifier_per_account_contact", unique: true