This is my first post to the forum, when I try to run a migration that has a t.column, I get this: rake aborted! undefined method `column'' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0x487c194> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Can you supply some more code please, assuming it is not hundreds of lines then show us the migration .rb contents. 2009/3/27 Doel Sengupta <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>> > This is my first post to the forum, > when I try to run a migration that has a t.column, I get this: > > rake aborted! > undefined method `column'' for > #<ActiveRecord::ConnectionAdapters::TableDefinition:0x487c194> > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Fri, Mar 27, 2009 at 4:15 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Can you supply some more code please, assuming it is not hundreds of lines > then show us the migration .rb contents. > > 2009/3/27 Doel Sengupta <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > >> This is my first post to the forum, >> when I try to run a migration that has a t.column, I get this: >> >> rake aborted! >> undefined method `column'' for >> #<ActiveRecord::ConnectionAdapters::TableDefinition:0x487c194> >> -- >> Posted via http://www.ruby-forum.com/. >> >> >>Which version of Rails are you using? -Conrad --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Colin Law wrote:> Can you supply some more code please, assuming it is not hundreds of > lines > then show us the migration .rb contents. > > 2009/3/27 Doel Sengupta <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>I got it fixed by changing t.column to t.<datatype> in my model.rb file -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Conrad Taylor wrote:> On Fri, Mar 27, 2009 at 4:15 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > wrote: > >>> undefined method `column'' for >>> #<ActiveRecord::ConnectionAdapters::TableDefinition:0x487c194> >>> -- >>> Posted via http://www.ruby-forum.com/. >>> >>> >>> > Which version of Rails are you using? > > -ConradRails 2.0.2 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Doel Sengupta wrote:> I got it fixed by changing t.column to t.<datatype> in my model.rb fileYou might have been mixing syntaxes: t.column :first_name, :string or t.string :first_name will work -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---