scinote-web/db/migrate/20190711125513_create_team_repositories.rb

14 lines
326 B
Ruby
Raw Normal View History

2019-07-11 21:40:20 +08:00
# 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