Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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!