i added [code], force => true[/code] to the migration file which was created when i generated the model. can anyone tell me what is going wrong here? ####################################### MIGRATION: ####################################### class CreateStories < ActiveRecord::Migration def self.up create_table :stories, force => true do |t| t.string :name t.string :link t.timestamps end end def self.down drop_table :stories end end ####################################### ERROR: ####################################### undefined method ''force'' for ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x51f3bf0 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> > undefined method ''force'' for > ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x51f3bf0Should be :force => true -- note the colon, making it a symbol. -- 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 -~----------~----~----~----~------~----~------~--~---
And like all of us, sometimes we become blind looking at the code for so long that we just need a second pair of eyes. :-) Jason On Jul 30, 3:48 pm, A Love of Surf <wetl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> wow, thank you. I need to be more careful to look and see if it is > something i can figure out before i come asking for help... > > On Jul 30, 11:21 am, Jeremy Weiskotten <rails-mailing-l...@andreas- > > s.net> wrote: > > > undefined method ''force'' for > > > ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x51f3bf0 > > > Should be :force => true -- note the colon, making it a symbol. > > -- > > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---