kaiho/db/migrate/20180729191829_create_github_repositories.rb

10 lines
276 B
Ruby

class CreateGithubRepositories < ActiveRecord::Migration[5.2]
def change
create_table :github_repositories do |t|
t.string :name, uniqueness: true, null: false
t.references :software, uniqueness: true, foreign_key: true
t.timestamps
end
end
end