ruby on rails - rake migrate aborted trouble -


i following tutorial, tutorial using rails 2.0. however, using rails 4.0. guess difference makes trouble when doing rake migrate?

[photos/db/migrate/20130722034245_create_photos.rb]

class createphotos < activerecord::migration def change   create_table :photos |t|      t.timestamps   end end  def self.up   create_table :photos |photo|     photo.column "filename", :string   end end  def self.down     drop_table :photos   end end 

[on terminal]

seodongju@seoui-macbook-pro ~/desktop/projects/photos$ rake migrate rake aborted! don't know how build task 'migrate' /usr/local/rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `eval' /usr/local/rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `<main>' (see full trace running task --trace) 

 rake db:migrate 

not

 rake migrate. 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -