class CreateSupertagMoneytaggings

This migration comes from supertag

Public Instance Methods

change() click to toggle source
# File lib/generators/supertag/templates/migrations/create_moneytaggings_migration.rb, line 3
def change
  create_table :supertag_moneytaggings do |t|
    t.references :moneytag,      :index => true
    t.references :moneytaggable, :polymorphic => true
  end
  add_index :supertag_moneytaggings, ["moneytaggable_id", "moneytaggable_type"],
            :name => 'index_moneytaggings_moneytaggable_id_moneytaggable_type'
end