Class: CreateCrmDynamicFields

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/actasdynamic/install/templates/create_something_else.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/generators/actasdynamic/install/templates/create_something_else.rb', line 2

def change
  create_table "crm_dynamic_fields", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
    t.string "field_label"
    t.string "field_name", null: false
    t.string "field_data_type", null: false
    t.string "field_place_holder"
    t.string "field_regex"
    t.string "select_key"
    t.boolean "is_required", default: false
    t.bigint "reference_number"
    t.bigint "tenant_id", null: false
    t.bigint "dynamic_model_id", null: false
    t.datetime "created_at", precision: 6, null: false
    t.datetime "updated_at", precision: 6, null: false
    t.string "formula"
    t.boolean "processing", default: false
    t.index ["dynamic_model_id"], name: "index_crm_dynamic_fields_on_dynamic_model_id"
    t.index ["tenant_id"], name: "index_crm_dynamic_fields_on_tenant_id"
  end
end