mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-13 20:56:52 +08:00
14 lines
341 B
Ruby
14 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
|