kaiho/db/migrate/20180729191829_create_github_repositories.rb

11 lines
276 B
Ruby
Raw Normal View History

2018-07-29 19:06:32 +00:00
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