class CreateSupertagHashtaggings
This migration comes from supertag
Public Instance Methods
change()
click to toggle source
# File lib/generators/supertag/templates/migrations/create_hashtaggings_migration.rb, line 3 def change create_table :supertag_hashtaggings do |t| t.references :hashtag, :index => true t.references :hashtaggable, :polymorphic => true end add_index :supertag_hashtaggings, ["hashtaggable_id", "hashtaggable_type"], :name => 'index_hashtaggings_hashtaggable_id_hashtaggable_type' end