scinote-web/db/migrate/20190711125513_create_team_repositories.rb
2019-08-09 14:12:59 +02:00

13 lines
326 B
Ruby

# frozen_string_literal: true
class CreateTeamRepositories < ActiveRecord::Migration[5.2]
def change
create_table :team_repositories do |t|
t.references :team, foreign_key: true
t.references :repository, foreign_key: true
t.integer :permission_level, null: false
t.timestamps
end
end
end