Hi,

This happens because of *Schema cache dump * .
http://edgeguides.rubyonrails.org/4_0_release_notes.html#general. To avoid
this you need to run

rake db:schema:cache:clear

Cheers
Vivek

On Thu, Dec 18, 2014 at 3:40 PM, apsr84 <[email protected]> wrote:
>
>
> Hello guys,
>
> today happened a strange thing, i have a Rails 4 application which use a
> sql structure (use Postgres), no migrations at all; after some testing i
> dropped and recreated the db with rake db:drop and db:create, but i had an
> error loading the structure, on the last table i was working on, it was
> already there ...  looks like the db:create task created that table, only
> that one, each time.
>
> I checked and cleared all definitions of that table i had written, and all
> the caching im aware of, but still happens every time.
> It's not a big deal, easly solved without effort, but still ... having
> something going on, which i don't know why it is, is unaceptable and i need
> to understand and fix what i missed.
>
> Any idea or suggestion ? Where or how that could happen ?
>
> ps. I have quickly checked the source code but i have other priorities,
> can't lose hours into this now, in the weekend ill dig deeper ...
>
>
>  --
> 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/3da4a136-31ec-40f4-96f2-2ff30100157d%40googlegroups.com
> <https://groups.google.com/d/msgid/rubyonrails-talk/3da4a136-31ec-40f4-96f2-2ff30100157d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAFKVRj_mTpreu6OUfSP8k76nXisyzuPX3iAMABfL%2BTas_T33-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to