mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-19 07:32:34 +08:00
14 lines
326 B
Ruby
14 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
|