feat: Execute macro actions, for the conversation (#5066)

This commit is contained in:
Tejaswini Chile
2022-07-26 12:41:22 +05:30
committed by GitHub
parent bd7a56061e
commit 6a4c0a1578
17 changed files with 232 additions and 89 deletions

View File

@@ -6,7 +6,7 @@ class CreateMacros < ActiveRecord::Migration[6.1]
t.integer :visibility, default: 0
t.references :created_by, null: false, index: true, foreign_key: { to_table: :users }
t.references :updated_by, null: false, index: true, foreign_key: { to_table: :users }
t.jsonb :actions, null: false, default: '{}'
t.jsonb :actions, null: false, default: {}
t.timestamps
t.index :account_id, name: 'index_macros_on_account_id'
end

View File

@@ -570,7 +570,7 @@ ActiveRecord::Schema.define(version: 2022_07_20_080126) do
t.integer "visibility", default: 0
t.bigint "created_by_id", null: false
t.bigint "updated_by_id", null: false
t.jsonb "actions", default: "{}", null: false
t.jsonb "actions", default: {}, null: false
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["account_id"], name: "index_macros_on_account_id"