mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 06:06:56 +08:00
14 lines
396 B
Ruby
14 lines
396 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class CreateRepositoryNumberValue < ActiveRecord::Migration[6.0]
|
||
|
def change
|
||
|
create_table :repository_number_values do |t|
|
||
|
t.decimal :data, index: true
|
||
|
t.references :last_modified_by, index: true, foreign_key: { to_table: :users }
|
||
|
t.references :created_by, index: true, foreign_key: { to_table: :users }
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|