4 Replies - 2883 Views - Last Post: 17 May 2012 - 11:07 AM Rate Topic: -----

#1 SanmanX  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 32
  • Joined: 11-January 12

Rake Aborted

Posted 16 May 2012 - 10:55 AM

Hey guys, I'm having a problem with rake db:migrate, it doesn't fully finish. When i type it in i get the error:

==  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



Is This A Good Question/Topic? 0
  • +

Replies To: Rake Aborted

#2 SanmanX  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 32
  • Joined: 11-January 12

Re: Rake Aborted

Posted 16 May 2012 - 12:16 PM

I changed textfield to text and now it works fine for me, but my friend didn't have to change it, textfield works fine for him. Anyone know why is that?
Was This Post Helpful? 0
  • +
  • -

#3 timkd127  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 74
  • Joined: 27-February 10

Re: Rake Aborted

Posted 17 May 2012 - 05:38 AM

View PostSanmanX, on 16 May 2012 - 12:16 PM, said:

I changed textfield to text and now it works fine for me, but my friend didn't have to change it, textfield works fine for him. Anyone know why is that?



are you both using the same version of ruby?
Was This Post Helpful? 0
  • +
  • -

#4 SanmanX  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 32
  • Joined: 11-January 12

Re: Rake Aborted

Posted 17 May 2012 - 06:10 AM

We both have 1.9.3 ruby, 3.2.3 rails. Only difference I think of is OS. I'm in Ubuntu 11.10, he is on a Mac.
Was This Post Helpful? 0
  • +
  • -

#5 dorknexus  Icon User is offline

  • or something bad...real bad.
  • member icon

Reputation: 1256
  • View blog
  • Posts: 4,618
  • Joined: 02-May 04

Re: Rake Aborted

Posted 17 May 2012 - 11:07 AM

you guys both have the same version of the app or have you made modifications?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1