debian-mirror-gitlab/db/migrate/20190605184422_create_namespace_aggregation_schedules.rb
2019-09-30 21:07:59 +05:30

14 lines
432 B
Ruby

# frozen_string_literal: true
class CreateNamespaceAggregationSchedules < ActiveRecord::Migration[5.1]
DOWNTIME = false
def change
create_table :namespace_aggregation_schedules, id: false, primary_key: :namespace_id do |t|
t.integer :namespace_id, null: false, primary_key: true
t.index :namespace_id, unique: true
t.foreign_key :namespaces, column: :namespace_id, on_delete: :cascade
end
end
end