RE: [Rails] Re: table 'users' already exists

Okay, so I remembered that when I originally ran script/generate authenticated user session, that I got the message that the "09_create_users.rb" migrate file already existed. So it wasn't overwritten with the correct file. So I went to script/plugin source, found the correct file and did a copy and paste (inserting "users" where "<%= table_name %>" was, etc.). Now my migrate file looks like this: class CreateUsers < ActiveRecord::Migration   def self.up     create_table users, :force => true do |t|       t.column :login, :string       t.column :email, :string       t.column :crypted_password, :string, :limit => 40       t.column :salt, :string, :limit => 40       t.column :created_at, :datetime       t.column :updated_at, :datetime       t.column :remember_token, :string       t.column :remember_token_expires_at, :datetime       t.column :activation_code, :string, :limit => 40       t.column :activated_at, :datetime     end   end

  def self.down     drop_table users   end end

When I run rake db:migrate I get: Rake aborted! Undefined method 'users' for #<ActiveRecord::ConnectionAdapters::MysqlAdapter:0x3e259d4>

Now I'm really lost. I'm not sure what this error means, so I don't know what to do.

It means there is no method or local variable called users. You've typoed the above, you meant to write :users and not users.