The suitable data type for this is a decimal with precision of 9 and scale of 6 [decimal(9,6)]. The activerecord migration code for this turned out to be thus:
add_column :livetokens, :latitude, :decimal, :precision => 9, :scale => 6
C#, .Net, MVC, jQuery, JavaScript, HTML, CSS, Umbraco, Phonegap / Cordova, Xamarin, iPhone, iOS, Swift, Android, Windows, apps, websites, Full Stack, ecommerce, Facebook, responsive, front-end. Freelance developer, programmer for web and mobile in Bristol, UK.
add_column :livetokens, :latitude, :decimal, :precision => 9, :scale => 6
Download and install mitmproxy, if you haven't done so already. Go to a terminal and run mitmproxy. Get the network IP address of your mac by running ifconfig en1. Set the proxy on your iPhone by going to wifi settings. Set HTTP Proxy to “Manual”, and enter the IP of your Mac and port 8080. Start browsing on the iPhone, or run an app. Press ‘?’ to bring up the list of commands.
-webkit-text-size-adjust:none;
# send an sms @client.account.sms.messages.create( :from => '+44207XXXXXX', :to => phoneNumber, :body => body, :StatusCallback => ENV['app_url']+ENV['twilio_sms_postback']+'?smsId='+textmessageId.to_s )