Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Dropping Multiple Tables

#7

I am not sure if this is really a bug, but my migration that includes the drop of multiple tables does not drop multiple tables.

Example:

#

migration YAML file

# UP:
drop_table: dogs drop_table: cars drop_table: cats

Only cats gets dropped.

Reported by ablemike · May 15th, 2009 @ 03:40 AM

State: new
Milestone: none

Activity

  1. ablemike
    ablemike
    • Title changed from Droping Multiple Tables to Dropping Multiple Tables

    May 15th, 2009 @ 03:41 AM

  2. ablemike
    ablemike

    oooh... lighthouse botched the formatting...

    #
    # migration YAML file
    #
    UP:
      drop_table: dogs
      drop_table: cars
      drop_table: cats
    

    May 15th, 2009 @ 03:42 AM

  3. Dan Walker
    Dan Walker

    Try:
    @@@ YAML UP:

       drop_tables: [dogs, cats, cars]
    
    
    I think the spaces between table names may be required.
    

    July 22nd, 2009 @ 04:15 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.