#7 new
ablemike

Dropping Multiple Tables

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

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.

Comments and changes to this ticket

  • ablemike

    ablemike May 15th, 2009 @ 03:41 AM

    • Title changed from “Droping Multiple Tables” to “Dropping Multiple Tables”
  • ablemike

    ablemike May 15th, 2009 @ 03:42 AM

    oooh... lighthouse botched the formatting...

    #
    # migration YAML file
    #
    UP:
      drop_table: dogs
      drop_table: cars
      drop_table: cats
    
  • Dan Walker

    Dan Walker July 22nd, 2009 @ 04:15 PM

    Try:
    @@@ YAML UP:

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages