Project

General

Profile

Download (513 Bytes) Statistics
| Branch: | Tag: | Revision:
class CreateTaxableTaxonomies < ActiveRecord::Migration
def self.up
create_table :taxable_taxonomies do |t|
t.integer :taxonomy_id
t.integer :taxable_id
t.string :taxable_type

t.timestamps
end

add_index :taxable_taxonomies, [:taxable_id, :taxable_type]
add_index :taxable_taxonomies, [:taxable_id, :taxable_type, :taxonomy_id], :name => 'taxable_index'
add_index :taxable_taxonomies, :taxonomy_id
end

def self.down
drop_table :taxable_taxonomies
end
end
(136-136/137)