Sha256: e3e1fc5527c0cf06f742fc7a5a5337b30fec3c9d5f7b33effb6b67cdde7d1a08
Contents?: true
Size: 659 Bytes
Versions: 5
Compression:
Stored size: 659 Bytes
Contents
class CreateTaggings < ActiveRecord::Migration def up create_table "taggings" do |t| t.integer "tag_id" t.integer "taggable_id" t.string "taggable_type" t.integer "tagger_id" t.string "tagger_type" t.string "context" t.datetime "created_at" end add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id" add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context" create_table "tags" do |t| t.string "name" end end def down drop_table :tags drop_table :taggings end end
Version data entries
5 entries across 5 versions & 1 rubygems