Newbie having rake db:migrate problem: "already initialized constant"

FIXED. I was missing a page model class file.

I'm new to Ubuntu 11.04, new to RubyMine 3.2.4 (last year on Windows was a bust), fairly new to Rails.
I'm building my first app with RubyMine. I got the first db table to work. Built a new migration for a second table.
I used RUN > db:migrate and got the following:

/home/robinmalmquist/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/robinmalmquist/.rvm/gems/ruby-1.9.2-p180/bin/rake db:migrate
/home/robinmalmquist/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/version.rb:4: warning: already initialized constant MAJOR
...
....
.....

routes.rb
#
Rm01::Application.routes.draw do
  resources :treatments
  resources :pages

end
#####


/home/user_me/rmRRapps/rm01/db/migrate/20110919154253_create_treatments.rb
#
class CreateTreatments < ActiveRecord::Migration
  def change
    create_table :treatments do |t|
      t.string :client
      t.integer :rate
      t.float :time
      t.integer :tip
      t.float :mileage
      t.text :note

      t.timestamps
    end
  end
end



/home/user_me/rmRRapps/rm01/db/migrate/20110923042609_create_pages.rb
#
class CreatePages < ActiveRecord::Migration
  def change
    create_table :pages do |p|
      p.string :title

      p.timestamps
    end
  end
end

#####

Message was edited by: Robin Malmquist

Please sign in to leave a comment.