scinote-web/db/migrate/20220414143955_create_step_orderable_elements.rb

13 lines
341 B
Ruby

# frozen_string_literal: true
class CreateStepOrderableElements < ActiveRecord::Migration[6.1]
def change
create_table :step_orderable_elements do |t|
t.references :step, null: false, index: true, foreign_key: true
t.integer :position
t.references :orderable, polymorphic: true
t.timestamps
end
end
end