On Apr 28, 2:45 pm, Scott LaBounty <[email protected]> wrote:
> I think if you change one of them to 002_ ... it will probably work.
That is correct. Migrations should be stored in sequentially numbered
files, and it doesn't allow you to reuse a number for more than one
migration.
Also, one other semi-common error is using the same class name for
multiple Sequel::Migration subclasses. The Sequel::Migration
subclasses the migration files contain should be different in each
migration file. It's easy to fulfill this requirement by using the
following syntax for your migrations:
Class.new(Sequel::Migration) do
def up
...
end
def down
...
end
end
This way all of your migration classes will automatically be unique.
If you look at the recently added schema_dumper extension, you will
see that this is the format it uses.
Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---