Re: Skip default_scope when running migrations

Marnen Laibow-Koser
Sat, 17 Oct 2009 20:13:50 -0000

Greg Christopher wrote:
> Hi,
>
> I was wondering if there is a way to skip the application of a
> named_scope to calls made in legacy migrations.  I am working with some
> old migrations that include some data manipulation tasks, and my default
> scope is preventing those migrations from running.  I''m trying to
avoid
> editing those migration files with with_exclusive_scope.

Generally speaking, you shouldn''t be running very old migrations -- for
existing installations, the migrations get run one at a time, and for
new installations, you should just use rake db:schema:load .  You''ve
found out a reason for this the hard way. :)  What exactly are you
trying to do?

>
> Thanks,
>
> -G

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org
--
Posted via http://www.ruby-forum.com/.