kaiho/db/migrate/20180804072602_create_branches.rb
2018-08-05 12:37:35 +02:00

10 lines
219 B
Ruby

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