Skip to content

Instantly share code, notes, and snippets.

@Breefield
Created November 22, 2013 18:59
Show Gist options
  • Save Breefield/7605054 to your computer and use it in GitHub Desktop.
Save Breefield/7605054 to your computer and use it in GitHub Desktop.
class CreateLocations < ActiveRecord::Migration
def change
create_table :locations do |t|
t.string :address
t.float :latitude
t.float :longitude
t.integer :located_id
t.string :located_type
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment