Sha256: 6a2af513a1db52f0adc3c7420b1f90fd126e525cdb1bf0314d2b8a9e92dd237b
Contents?: true
Size: 1.05 KB
Versions: 9
Compression:
Stored size: 1.05 KB
Contents
class CreateFlowActionsAndTriggers < ActiveRecord::Migration[5.2] def change create_table :disco_app_flow_actions do |t| t.integer :shop_id, limit: 8 t.string :action_id t.string :action_run_id t.jsonb :properties, default: {} t.integer :status, default: 0 t.datetime :processed_at, null: true t.jsonb :processing_errors, default: [] t.timestamps null: false end create_table :disco_app_flow_triggers do |t| t.integer :shop_id, limit: 8 t.string :title t.string :resource_name t.string :resource_url t.jsonb :properties, default: {} t.integer :status, default: 0 t.datetime :processed_at, null: true t.jsonb :processing_errors, default: [] t.timestamps null: false end add_foreign_key :disco_app_flow_actions, :disco_app_shops, column: :shop_id, on_delete: :cascade add_foreign_key :disco_app_flow_triggers, :disco_app_shops, column: :shop_id, on_delete: :cascade add_index :disco_app_flow_actions, :action_run_id, unique: true end end
Version data entries
9 entries across 9 versions & 1 rubygems