Thanks! But I really though I'd done that, must still have had the bad 
migration in there messing things up. All fine now.




On Sunday, 2 February 2014 16:29:30 UTC+9, Frederick Cheung wrote:
>
> On Sunday, February 2, 2014 2:41:48 AM UTC, Bizt wrote:
>
> > 
> > Is this normal? I don't know where it's getting the schema from but it 
> can't be reading only from my db:migrate files. Does it get them from log 
> files when recreating the db, or does it look directly at the db and 
> rebuild. I want my database build purely from the files I'm looking at in 
> my db/migrate folder. How do I do this?
>
> db:reset recreates the database from schema.rb, which is created by 
> reading the state of the database (usually after you run migrations). The 
> simplest possible thing is probably to just delete the bad categories table 
> and let your new migration recreate it. 
>
> Fred. 
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/b6e41d9b-ae2d-42ea-bac3-13b856801541%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to