Sha256: 2a495835d8a0ab53e12a1fdbbac38bbd0174b6ad67b10e0f3b68387664810e6e

Contents?: true

Size: 693 Bytes

Versions: 5

Compression:

Stored size: 693 Bytes

Contents

# This migration comes from ecm_tags (originally 20160208121300)
class CreateEcmTagsTaggings < ActiveRecord::Migration
  def change
    create_table :ecm_tags_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', limit: 128
      t.datetime 'created_at'
    end

    add_index 'ecm_tags_taggings', %w(tag_id taggable_id taggable_type context tagger_id tagger_type), name: 'taggings_idx', unique: true
    add_index 'ecm_tags_taggings', %w(taggable_id taggable_type context), name: 'index_taggings_on_taggable_id_and_taggable_type_and_context'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecm_tags-1.0.0 db/migrate/20160208121300_create_ecm_tags_taggings.rb
ecm_tags-0.0.4 db/migrate/20160208121300_create_ecm_tags_taggings.rb
ecm_tags-0.0.3 db/migrate/20160208121300_create_ecm_tags_taggings.rb
ecm_tags-0.0.2 db/migrate/20160208121300_create_ecm_tags_taggings.rb
ecm_tags-0.0.1 db/migrate/20160208121300_create_ecm_tags_taggings.rb