2017-09-10 17:25:29 +05:30
|
|
|
# rubocop:disable Migration/Timestamps
|
2017-08-17 22:00:37 +05:30
|
|
|
class CreateContainerRepository < ActiveRecord::Migration
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def change
|
|
|
|
create_table :container_repositories do |t|
|
|
|
|
t.references :project, foreign_key: true, index: true, null: false
|
|
|
|
t.string :name, null: false
|
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index :container_repositories, [:project_id, :name], unique: true
|
|
|
|
end
|
|
|
|
end
|