# YM4R/GM plug-in issue

**URL:** <https://www.ruby-forum.com/t/ym4r-gm-plug-in-issue/192142>\
**Category:** Rails\
**Created:** [July 24, 2010, 8:51pm UTC](https://www.ruby-forum.com/t/ym4r-gm-plug-in-issue/192142 "2010-07-24T20:51:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_white](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jason\_white](https://www.ruby-forum.com/u/jason_white)\
**Post date:** [July 24, 2010, 8:51pm UTC](https://www.ruby-forum.com/t/ym4r-gm-plug-in-issue/192142/1 "2010-07-24T20:51:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jason\_white](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jason\_white](https://www.ruby-forum.com/u/jason_white)\
**Post date:** [July 25, 2010, 10:29am UTC](https://www.ruby-forum.com/t/ym4r-gm-plug-in-issue/192142/2 "2010-07-25T10:29:59Z")

</div>

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:

> DEPRECATION WARNING: Rake tasks in vendor/plugins/ym4r\_gm/tasks are
> 
> ```
> t.column :lat, :float
> 
> ```
> 
> end
> 
> def self.down  
> drop\_table :stores  
> end  
> end

Best regards

Peter De Berdt
