mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 19:24:10 +08:00
13 lines
341 B
Ruby
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
|