Sha256: 54238f29822c5aecf24c08458ce916e12a028e457dac3d5e0d737c6079fe49aa

Contents?: true

Size: 494 Bytes

Versions: 5

Compression:

Stored size: 494 Bytes

Contents

class CreateComableAddresses < ActiveRecord::Migration
  def change
    create_table :comable_addresses do |t|
      t.references :customer
      t.string :family_name, null: false
      t.string :first_name, null: false
      t.string :zip_code, null: false, limit: 8
      t.references :state
      t.string :state_name, null: false
      t.string :city, null: false
      t.string :detail
      t.string :phone_number, null: false, limit: 18
      t.datetime :last_used_at
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
comable_core-0.3.4 db/migrate/20141024025526_create_comable_addresses.rb
comable_core-0.3.3 db/migrate/20141024025526_create_comable_addresses.rb
comable_core-0.3.2 db/migrate/20141024025526_create_comable_addresses.rb
comable_core-0.3.1 db/migrate/20141024025526_create_comable_addresses.rb
comable_core-0.3.0 db/migrate/20141024025526_create_comable_addresses.rb