== CreateDepts: migrating ==================================================== -- create_table(:depts) rake aborted! An error has occurred, all later migrations canceled: undefined method `textfield' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0xaa3645c>
It's puzzling me because the someone else is working with me on the same app and he is getting no problem with the undefined method 'textfield'.
Here is what it looks like with a trace:
== CreateDepts: migrating ==================================================== -- create_table(:depts) rake aborted! An error has occurred, all later migrations canceled: undefined method `textfield' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0x9d7f04c> /home/ksan/parking_dev/departmental-permits-new/DeptTemp/db/migrate/20120427142847_create_depts.rb:4:in `block in change' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/schema_statements.rb:160:in `create_table' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:432:in `create_table' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:466:in `block in method_missing' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:438:in `block in say_with_time' /home/ksan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/benchmark.rb:280:in `measure' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:438:in `say_with_time' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:458:in `method_missing' /home/ksan/parking_dev/departmental-permits-new/DeptTemp/db/migrate/20120427142847_create_depts.rb:3:in `change' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:407:in `block (2 levels) in migrate' /home/ksan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/benchmark.rb:280:in `measure' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:407:in `block in migrate' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:119:in `with_connection' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:389:in `migrate' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:528:in `migrate' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:720:in `block (2 levels) in migrate' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:777:in `call' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:777:in `ddl_transaction' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:719:in `block in migrate' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:700:in `each' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:700:in `migrate' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:570:in `up' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/migration.rb:551:in `migrate' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.3/lib/active_record/railties/databases.rake:153:in `block (2 levels) in <top (required)>' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain' /home/ksan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run' /home/ksan/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>' /home/ksan/.rvm/gems/ruby-1.9.3-p125/bin/rake:19:in `load' /home/ksan/.rvm/gems/ruby-1.9.3-p125/bin/rake:19:in `<main>' Tasks: TOP => db:migrate

New Topic/Question
Reply



MultiQuote






|