kaiho/db/migrate/20180722183046_create_versions.rb

12 lines
257 B
Ruby
Raw Normal View History

2018-07-22 19:45:53 +00:00
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