Sha256: ffe5bc95e98bd1abd31095851babefc20a786ae58dd324b3b8cc8cddbe38cacc

Contents?: true

Size: 400 Bytes

Versions: 6

Compression:

Stored size: 400 Bytes

Contents

class CreateWafflemixCategories < ActiveRecord::Migration
  def change
    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/20120918100336_create_wafflemix_categories.rb
wafflemix-0.0.5 db/migrate/20120918100336_create_wafflemix_categories.rb
wafflemix-0.0.4 db/migrate/20120918100336_create_wafflemix_categories.rb
wafflemix-0.0.3 db/migrate/20120918100336_create_wafflemix_categories.rb
wafflemix-0.0.2 db/migrate/20120918100336_create_wafflemix_categories.rb
wafflemix-0.0.1 db/migrate/20120918100336_create_wafflemix_categories.rb