Sha256: 931c2e0de2a69f9d001d2040bd3d32e689181288aabb41f99bdd24c37d891e76

Contents?: true

Size: 763 Bytes

Versions: 2

Compression:

Stored size: 763 Bytes

Contents

# This migration comes from ecm_tags (originally 20160208121300)
# This migration comes from ecm_tags (originally 20160208121300)
class CreateEcmTagsTaggings < ActiveRecord::Migration[4.2]
  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

2 entries across 2 versions & 1 rubygems

Version Path
ecm_tags-2.2.1 spec/dummy/db/migrate/20160212133932_create_ecm_tags_taggings.ecm_tags.rb
ecm_tags-2.2.0 spec/dummy/db/migrate/20160212133932_create_ecm_tags_taggings.ecm_tags.rb