Sha256: 192b0f610344693c67ddebaed7efb1537f2df2c0984dbdb5984312286b0bac13
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
class CreatePostalCode < ActiveRecord::Migration def change create_table :postal_codes do |t| t.string :name t.string :city t.string :region t.string :region_code t.string :country_code t.float :latitude t.float :longitude t.boolean :geocoded t.string :time_zone t.integer :country_id t.timestamps end add_index :postal_codes, :country_code add_index :postal_codes, :name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peripatetic-0.0.2 | lib/generators/db/create_postal_codes_table.rb |