Sha256: 3b4a6fd607933952f1f658b4d07c96fe35c112aeb7312032482716df140b8601
Contents?: true
Size: 513 Bytes
Versions: 5
Compression:
Stored size: 513 Bytes
Contents
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
Version data entries
5 entries across 5 versions & 1 rubygems