summaryrefslogtreecommitdiff
path: root/db/migrate/20111213182546_remove_tenant_id_from_gemeinschaft_setup.rb
blob: d91b195e622446674be291d82e6ce98ba555f0b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class RemoveTenantIdFromGemeinschaftSetup < ActiveRecord::Migration
  def up
    remove_column :gemeinschaft_setups, :tenant_id
    remove_column :gemeinschaft_setups, :human_area_code
    remove_column :gemeinschaft_setups, :area_code_id
    remove_column :gemeinschaft_setups, :internal_extension_ranges
    remove_column :gemeinschaft_setups, :external_numbers
  end

  def down
    add_column :gemeinschaft_setups, :external_numbers, :string
    add_column :gemeinschaft_setups, :internal_extension_ranges, :string
    add_column :gemeinschaft_setups, :area_code_id, :integer
    add_column :gemeinschaft_setups, :human_area_code, :string
    add_column :gemeinschaft_setups, :tenant_id, :integer
  end
end