Class: CreateAddresses

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/address_engine/templates/migration.rb

Class Method Summary collapse

Class Method Details

.downObject



19
20
21
# File 'lib/generators/address_engine/templates/migration.rb', line 19

def self.down
  drop_table :addresses
end

.upObject



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

def self.up
  create_table "addresses", :force => true do |t|
    t.string   "email"
    t.string   "firstname"
    t.string   "lastname"
    t.text     "address"
    t.string   "city"
    t.string   "state_province_region"
    t.string   "zip_postal_code"
    t.string   "country"
    t.string   "phone"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string   "middlename"
  end
end