Class: CreateFlowStateTransitionArtefacts
- Inherits:
-
Object
- Object
- CreateFlowStateTransitionArtefacts
- Defined in:
- lib/generators/flow_state/templates/create_flow_state_transition_artefacts.rb
Overview
Tbale for flow transition changes
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/generators/flow_state/templates/create_flow_state_transition_artefacts.rb', line 5 def change create_table :flow_state_transition_artefacts do |t| t.references :transition, null: false, foreign_key: { to_table: :flow_state_flow_transitions } t.string :name, null: false t.json :payload t. end end |