Class: AddProviderAddressTable

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/active_record/add_provider_address_table.rb

Class Method Summary collapse

Class Method Details

.downObject



20
21
22
# File 'lib/generators/active_record/add_provider_address_table.rb', line 20

def self.down
  drop_table :np_addresses
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/generators/active_record/add_provider_address_table.rb', line 2

def self.up
  create_table :np_addresses do |t|
    t.integer :np_identifier_id

    t.string :address_type
    t.string :address1
    t.string :address2

    t.string :city
    t.string :state
    t.string :country
    t.string :zip
    t.string :phone

    t.timestamps
  end
end