mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
15 lines
443 B
Ruby
15 lines
443 B
Ruby
|
class CreateRepositoryAssetValues < ActiveRecord::Migration[5.1]
|
||
|
def change
|
||
|
create_table :repository_asset_values do |t|
|
||
|
t.references :asset, index: true
|
||
|
t.references :created_by,
|
||
|
index: true,
|
||
|
foreign_key: { to_table: :users }
|
||
|
t.references :last_modified_by,
|
||
|
index: true,
|
||
|
foreign_key: { to_table: :users }
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|