Class: CreateDuctworkPipelines
- Inherits:
-
Ductwork::Migration
- Object
- Ductwork::Migration
- CreateDuctworkPipelines
- Defined in:
- lib/generators/ductwork/install/templates/db/create_ductwork_pipelines.rb
Instance Method Summary collapse
Methods included from Ductwork::MigrationHelper
#belongs_to, #create_ductwork_table, #mysql?, #postgresql?, #uuid_column_type
Instance Method Details
#change ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/ductwork/install/templates/db/create_ductwork_pipelines.rb', line 4 def change create_ductwork_table :ductwork_pipelines do |table| table.string :klass, null: false table.string :status, null: false table. null: false end add_index :ductwork_pipelines, :klass end |