class CreateSupertagUsertaggings

This migration comes from supertag

Public Instance Methods

change() click to toggle source
# File lib/generators/supertag/templates/migrations/create_usertaggings_migration.rb, line 3
def change
  create_table :supertag_usertaggings do |t|
    t.references :usertag,      :index => true
    t.references :usertaggable, :polymorphic => true
  end
  add_index :supertag_usertaggings, ["usertaggable_id", "usertaggable_type"],
            :name => 'index_usertaggings_usertaggable_id_usertaggable_type'
end