Displaying 1 result from an estimated 1 matches for "creategeodata".
2009 Jun 23
2
syntax error, unexpected tINTEGER, expecting $end
...following the examples in "RailsSpace" by Hartl. I am using Ruby
1.8.7 and Rails 2.3.2. Not sure if this is a Ruby bug. See
http://redmine.ruby-lang.org/issues/show/386.
Below is the code that creates the geo_data table. db:migrate went
fine. Please help. Thanks.
Code
1. class CreateGeoData < ActiveRecord::Migration
2. def self.up
3. create_table :geo_data do |t|
4. t.column :zip_code, :string
5. t.column :latitude, :float
6. t.column :longitude, :float
7. t.column :city, :string
8. t.column :state, :string
9....