blob: d5c343dc527bdf4d9685784bab0756e3f906aeef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class AddProjectIdToSubscriptions < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
add_column :subscriptions, :project_id, :integer
add_foreign_key :subscriptions, :projects, column: :project_id, on_delete: :cascade # rubocop: disable Migration/AddConcurrentForeignKey
end
def down
remove_column :subscriptions, :project_id
end
end
|