# Problems learning rake db:migrate

**URL:** <https://www.ruby-forum.com/t/problems-learning-rake-db-migrate/144542>\
**Category:** Rails\
**Created:** [July 30, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/problems-learning-rake-db-migrate/144542 "2008-07-30T19:58:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_Love\_of\_Surf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@A\_Love\_of\_Surf](https://www.ruby-forum.com/u/A_Love_of_Surf)\
**Post date:** [July 30, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/problems-learning-rake-db-migrate/144542/1 "2008-07-30T19:58:52Z")

</div>

i added

```auto
, 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

---

<div class="post-metadata">

**Author:** ![A\_Love\_of\_Surf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@A\_Love\_of\_Surf](https://www.ruby-forum.com/u/A_Love_of_Surf)\
**Post date:** [July 30, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/problems-learning-rake-db-migrate/144542/2 "2008-07-30T20:21:57Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![A\_Love\_of\_Surf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@A\_Love\_of\_Surf](https://www.ruby-forum.com/u/A_Love_of_Surf)\
**Post date:** [July 30, 2008, 9:51pm UTC](https://www.ruby-forum.com/t/problems-learning-rake-db-migrate/144542/3 "2008-07-30T21:51:20Z")

</div>

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-

---

<div class="post-metadata">

**Author:** ![A\_Love\_of\_Surf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@A\_Love\_of\_Surf](https://www.ruby-forum.com/u/A_Love_of_Surf)\
**Post date:** [July 30, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/problems-learning-rake-db-migrate/144542/4 "2008-07-30T22:53:25Z")

</div>

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
