mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
14 lines
379 B
Ruby
14 lines
379 B
Ruby
class CreateProjectRepoMappings < ActiveRecord::Migration[8.0]
|
|
def change
|
|
create_table :project_repo_mappings do |t|
|
|
t.references :user, null: false, foreign_key: true
|
|
t.string :project_name, null: false
|
|
t.string :repo_url, null: false
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :project_repo_mappings, [ :user_id, :project_name ], unique: true
|
|
end
|
|
end
|