mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
14 lines
443 B
Ruby
14 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
|