No, first of all, you need to fix your syntax error, like the error
trace tells you. You haven''t closed the create_table statement with an
"end".
On 24 Jul 2010, at 20:49, jason white wrote:
> i''m creating an store finder application with the YM4R/GM plug-in.
> When i run rake db:migrate i get the error below. is there something
> i need to move in order for this plug-in to work?
>
> Cheers,
> Jason
>
> jason-macbook:chapter2 munkie$ rake db:migrate
>
> (in /Users/munkie/rails_projects/mashups/chapter2)
> DEPRECATION WARNING: Rake tasks in vendor/plugins/ym4r_gm/tasks are
> deprecated. Use lib/tasks instead. (called from /Users/munkie/
> Developer/.rvm/gems/ruby-1.8.7-p248/gems/rails-2.3.8/lib/tasks/
> rails.rb:10)
> rake aborted!
> ./db/migrate//20100724175523_create_stores.rb:16: syntax error,
> unexpected $end, expecting kEND
>
> (See full trace by running task with --trace)
>
>
>
>
> class CreateStores < ActiveRecord::Migration
> def self.up
> create_table :stores do |t|
> t.column :name, :string
> t.column :street, :string
> t.column :city, :string
> t.column :state, :string
> t.column :zipcode, :string
> t.column :lng, :float
> t.column :lat, :float
> end
>
> def self.down
> drop_table :stores
> end
> end
Best regards
Peter De Berdt
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.