Sha256: ed56d1834ddc0e97c719fa9851a2fec9e5ac51f9048b551f1f432856f6f7d8bd
Contents?: true
Size: 284 Bytes
Versions: 1
Compression:
Stored size: 284 Bytes
Contents
class AddLatAndLongToAddress < ActiveRecord::Migration def self.up add_column :addresses, :lat, :float # Postgres doesn't have :double add_column :addresses, :lng, :float end def self.down remove_column :addresses, :lat remove_column :addresses, :lng end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ultrasphinx-1.11 | test/integration/app/db/migrate/007_add_lat_and_long_to_address.rb |