mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
14 lines
528 B
Ruby
14 lines
528 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateRepositoryStatusValues < ActiveRecord::Migration[6.0]
|
|
def change
|
|
create_table :repository_status_values do |t|
|
|
t.references :created_by, index: true, foreign_key: { to_table: :users }, null: true
|
|
t.references :last_modified_by, index: true, foreign_key: { to_table: :users }, null: true
|
|
t.references :repository_status_item, null: false, foreign_key: true,
|
|
index: { name: 'index_on_rep_status_type_id' }
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|