Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20160805041956_add_deleted_at_to_namespaces.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a853de3abfbed5842ea423efbe77c077d0163028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class AddDeletedAtToNamespaces < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def change
    add_column :namespaces, :deleted_at, :datetime
    add_concurrent_index :namespaces, :deleted_at
  end
end