summaryrefslogtreecommitdiff
path: root/db/migrate/20161117114805_remove_undeleted_groups.rb
blob: ebc2d974ae0a37a083b520b42fec8b62afd610dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.

class RemoveUndeletedGroups < ActiveRecord::Migration
  DOWNTIME = false

  def up
    execute "DELETE FROM namespaces WHERE deleted_at IS NOT NULL;"
  end

  def down
    # This is an irreversible migration;
    # If someone is trying to rollback for other reasons, we should not throw an Exception.
    # raise ActiveRecord::IrreversibleMigration
  end
end