kaiho/db/migrate/20180804072602_create_branches.rb

11 lines
219 B
Ruby
Raw Normal View History

2018-08-05 10:37:35 +00:00
class CreateBranches < ActiveRecord::Migration[5.2]
def change
create_table :branches do |t|
t.string :name, null: false
t.references :software, foreign_key: true
t.timestamps
end
end
end