Sha256: 61fb313c6a526545b36040a557b44a709f6930a2405f78a486f1c1b4f79e914f

Contents?: true

Size: 698 Bytes

Versions: 4

Compression:

Stored size: 698 Bytes

Contents

# 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

4 entries across 4 versions & 1 rubygems

Version Path
ecm_tags-2.2.1 db/migrate/20160208121300_create_ecm_tags_taggings.rb
ecm_tags-2.2.0 db/migrate/20160208121300_create_ecm_tags_taggings.rb
ecm_tags-2.1.0 db/migrate/20160208121300_create_ecm_tags_taggings.rb
ecm_tags-2.0.2 db/migrate/20160208121300_create_ecm_tags_taggings.rb