Help: uninitialized constant in migration

Not sure what this error means. "uninitialized constant MigrationLoginSugar" I ran it with --trace but I'm not going to post that here yet since it's long.

Here is the migration itself. I didn't see any particular columns that would effect it but I'm wondering about the 'CHAR(40) columns not saying string ? Is that wrong before I go ahead and much with it?


class LoginSugar < ActiveRecord::Migration   def self.up     create_table :users, :force => true do |t|       t.column :login, :string, :limit => 80, :null => false       t.column :salted_password, :string, :limit => 40, :null => false       t.column :email, :string, :limit => 60, :null => false       t.column :first_name, :string, :limit => 40       t.column :last_name, :string, :limit => 40       t.column :salt, 'CHAR(40)', :null => false       t.column :verified, :integer, :default => 0       t.column :role, :string, :limit => 40, :default => nil       t.column :security_token, 'CHAR(40)', :default => nil       t.column :token_expiry, :datetime, :default => nil       t.column :deleted, :integer, :default => 0       t.column :delete_after, :datetime, :default => nil     end   end

  def self.down     drop_table :users   end end

It means you have the migration LoginSugar in a file called XXX_migration_login_sugar.rb. The name of the migration and the name of the file are coupled.

-- fxn