Sha256: fd4e3937c2af6e4a3a9adeca65329c6ad3c47b1838eddc2ff8aceef0e5eb52e2

Contents?: true

Size: 440 Bytes

Versions: 6

Compression:

Stored size: 440 Bytes

Contents

class ReDoCategories < ActiveRecord::Migration
  def up
    drop_table :wafflemix_categories
  end

  def down
    create_table :wafflemix_categories do |t|
      t.integer :categorical_id
      t.string :categorical_type
      t.string :name
      t.integer :position
      t.string :ancestry

      t.timestamps
    end
    add_index :wafflemix_categories, :categorical_id
    add_index :wafflemix_categories, :categorical_type
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wafflemix-0.0.6 db/migrate/20121206132733_re_do_categories.rb
wafflemix-0.0.5 db/migrate/20121206132733_re_do_categories.rb
wafflemix-0.0.4 db/migrate/20121206132733_re_do_categories.rb
wafflemix-0.0.3 db/migrate/20121206132733_re_do_categories.rb
wafflemix-0.0.2 db/migrate/20121206132733_re_do_categories.rb
wafflemix-0.0.1 db/migrate/20121206132733_re_do_categories.rb