title: Generate a rails model with an array of floats as attribute
body: <p>Disclaimer:  I am a newbie.</p>
  
  <p>I am trying to create a User and save it to the database with a location attribute.  I want the location to be an array with the latitude and longitude of the user, which I want to pull from the browser using "navigator.geolocation.GetCurrentLocation()".</p>
  
  <p>I created a User model and ran the following migration:</p>
  
  <pre><code>class CreateUsers &lt; ActiveRecord::Migration
    def change
      create_table :users do |t|
        t.string :name
        t.float :location, array: true
  
        t.timestamps null: false
      end
    end
  end
  </code></pre>
  
  <p>If I pass it a float, it allows me to save it.  However, if I try to pass it two floats (lat and long) it throws an error ("no method to_f for "array").  Has anyone tried doing this before that could offer some assistance?  Thanks.</p>