mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-10 07:05:57 +08:00
12 lines
369 B
Ruby
12 lines
369 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateStepResults < ActiveRecord::Migration[7.0]
|
|
def change
|
|
create_table :step_results do |t|
|
|
t.references :step, null: false, foreign_key: true
|
|
t.references :result, null: false, foreign_key: true
|
|
t.references :created_by, null: false, foreign_key: { to_table: :users }
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|