Sha256: 9163601b9e296668f607b95e1899f7a3d292c0a3cea50ef048bef610e44af5ce

Contents?: true

Size: 411 Bytes

Versions: 6

Compression:

Stored size: 411 Bytes

Contents

class AddCategoryJoinsTable < ActiveRecord::Migration
  def change
    create_table :wafflemix_categoricals do |t|
      t.integer :category_id
      t.integer :categorical_id
      t.string :categorical_type

      t.timestamps
    end
    add_index :wafflemix_categoricals, :category_id
    add_index :wafflemix_categoricals, :categorical_id
    add_index :wafflemix_categoricals, :categorical_type
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wafflemix-0.0.6 db/migrate/20121206133026_add_category_joins_table.rb
wafflemix-0.0.5 db/migrate/20121206133026_add_category_joins_table.rb
wafflemix-0.0.4 db/migrate/20121206133026_add_category_joins_table.rb
wafflemix-0.0.3 db/migrate/20121206133026_add_category_joins_table.rb
wafflemix-0.0.2 db/migrate/20121206133026_add_category_joins_table.rb
wafflemix-0.0.1 db/migrate/20121206133026_add_category_joins_table.rb