# The dreaded error Before updating scaffolding from new DB s

**URL:** <https://www.ruby-forum.com/t/the-dreaded-error-before-updating-scaffolding-from-new-db-s/52020>\
**Category:** Rails\
**Created:** [January 10, 2006, 4:56am UTC](https://www.ruby-forum.com/t/the-dreaded-error-before-updating-scaffolding-from-new-db-s/52020 "2006-01-10T04:56:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbelsham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a88e4f/32.png) [@dbelsham](https://www.ruby-forum.com/u/dbelsham)\
**Post date:** [January 10, 2006, 4:56am UTC](https://www.ruby-forum.com/t/the-dreaded-error-before-updating-scaffolding-from-new-db-s/52020/1 "2006-01-10T04:56:59Z")

</div>

Hi  
I am pretty sure that this is a common nuby problem but I cannot figure  
it out i try to run scfaoldong and get a error “Before updating  
scaffolding from new DB schema, try creating a table for your model”

I have mysql set up and created the tables etc.

Derek

---

<div class="post-metadata">

**Author:** ![dbelsham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a88e4f/32.png) [@dbelsham](https://www.ruby-forum.com/u/dbelsham)\
**Post date:** [January 10, 2006, 8:29am UTC](https://www.ruby-forum.com/t/the-dreaded-error-before-updating-scaffolding-from-new-db-s/52020/2 "2006-01-10T08:29:31Z")

</div>

Derek Belsham wrote:

> Hi  
> I am pretty sure that this is a common nuby problem but I cannot figure  
> it out i try to run scfaoldong and get a error “Before updating  
> scaffolding from new DB schema, try creating a table for your model”
> 
> I have mysql set up and created the tables etc.
> 
> Derek

Did you define your database connection information in  
config/database.yml?

What is the syntax of your command?

Dan

---

<div class="post-metadata">

**Author:** ![dbelsham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a88e4f/32.png) [@dbelsham](https://www.ruby-forum.com/u/dbelsham)\
**Post date:** [January 10, 2006, 5:02pm UTC](https://www.ruby-forum.com/t/the-dreaded-error-before-updating-scaffolding-from-new-db-s/52020/3 "2006-01-10T17:02:51Z")

</div>

Daniel W. wrote:

> Derek Belsham wrote:
> 
> > Hi  
> > I am pretty sure that this is a common nuby problem but I cannot figure  
> > it out i try to run scfaoldong and get a error “Before updating  
> > scaffolding from new DB schema, try creating a table for your model”
> > 
> > I have mysql set up and created the tables etc.
> > 
> > Derek
> 
> Did you define your database connection information in  
> config/database.yml?
> 
> What is the syntax of your command?
> 
> Dan

Here is the config/database.yml

# MySQL (default setup). Versions 4.1 and 5.0 are recommended.

# 

# Get the fast C bindings:

# gem install mysql

# (on OS X: gem install mysql – --include=/usr/local/lib)

# And be sure to use new-style password hashing:

# [http://dev.mysql.com/doc/refman/5.0/en/old-client.html](http://dev.mysql.com/doc/refman/5.0/en/old-client.html)

development:  
adapter: mysql  
database: blog\_development  
host: localhost  
username: derek  
password: wcug13

# socket: /tmp/mysql.sock

# Connect on a TCP socket. If omitted, the adapter will connect on

the

# domain socket given by socket instead.

host: localhost  
#port: 3306

# Warning: The database defined as ‘test’ will be erased and

# re-generated from your development database when you run ‘rake’.

# Do not set this db to the same as development or production.

test:  
adapter: mysql  
database: blog\_test  
host: localhost  
username: derek  
password: wcug13  
production:  
adapter: mysql  
database: blog\_production  
host: localhost  
username: derek  
password: wcug13
