Problems learning rake db:migrate

i added

, force => true

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

undefined method ‘force’ for
ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x51f3bf0

Should be :force => true – note the colon, making it a symbol.

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-

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. :slight_smile:

Jason

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs