12 lines
257 B
Ruby
12 lines
257 B
Ruby
|
class CreateVersions < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
create_table :versions do |t|
|
||
|
t.string :number, null: false
|
||
|
t.datetime :date, null: false
|
||
|
t.references :software, foreign_key: true
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|