Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby ActiveRecord Basics AR Extensions Model Versioning

rake aborted! LoadError: cannot load such file -- #

Hello, I cannot execute the migration generated by

rails generate paper_trail:install

the migration file generated is this one "very different than the Catlin's one"

class CreateVersions < ActiveRecord::Migration
  def change
    create_table :versions do |t|
      t.string   :item_type, :null => false
      t.integer  :item_id,   :null => false
      t.string   :event,     :null => false
      t.string   :whodunnit
      t.text     :object
      t.datetime :created_at
    add_index :versions, [:item_type, :item_id]

when I run

rake db:migrate

I get the following error

rake aborted!
LoadError: cannot load such file --   #
/home/sebastian/ruby_projects/examples/biller/config/application.rb:3:in `require'
/home/sebastian/ruby_projects/examples/biller/config/application.rb:3:in `<top (required)>'
/home/sebastian/ruby_projects/examples/biller/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
Andrew Olson
Andrew Olson
4,028 Points

Hi Sebastian!

What are you requiring on line 3 of config/application.rb?

Can you try running rake db:migrate --trace and see if that provides any more info?

hi thanks for your comment, well I do not have idea what happened but everything seems to be solved, I just restar my computer and everything solved

Andrew Olson
Andrew Olson
4,028 Points

That's great to hear.

Happy coding!