class CreateCanCamelNodes

Public Instance Methods

change() click to toggle source
# File lib/generators/can_camel/db/migrate/00000000000001_create_can_camel_nodes.rb, line 2
def change
  create_table CanCamel::TABLE_NAME do |t|
    t.column :name, :string, index: true
    t.column :description, :text, null: true
    t.column :parent_id, :integer, null: true
    t.column :inherit_id, :integer, null: true
    t.column :type, :string
    t.column :override_fields, :json, default: []
    t.column :condition, :json, default: {}
    t.column :result, :json, default: {}
  end
end