Sha256: dbbee800c74ab56f1f5dffec082f77d7b50089c9ff49686fab086126169cf670

Contents?: true

Size: 371 Bytes

Versions: 10

Compression:

Stored size: 371 Bytes

Contents

class CreateMakeTaggableTaggings < ActiveRecord::Migration[5.2]
  def change
    create_table MakeTaggable.taggings_table do |t|
      t.references :tag, foreign_key: {to_table: MakeTaggable.tags_table}
      t.references :taggable, polymorphic: true
      t.references :tagger, polymorphic: true
      t.string :context, limit: 128

      t.timestamps
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
make_taggable-0.7.5 db/migrate/2_create_make_taggable_taggings.rb
make_taggable-0.7.4 db/migrate/2_create_make_taggable_taggings.rb
make_taggable-0.7.3 db/migrate/2_create_make_taggable_taggings.rb
make_taggable-0.7.2 db/migrate/2_create_make_taggable_taggings.rb
make_taggable-0.7.1 db/migrate/2_create_make_taggable_taggings.rb
make_taggable-0.7.0 db/migrate/2_create_make_taggable_taggings.rb
make_taggable-0.6.6 db/migrate/2_create_make_taggable_taggings.rb
make_taggable-0.6.5 db/migrate/2_create_make_taggable_taggings.rb
make_taggable-0.6.4 db/migrate/2_create_make_taggable_taggings.rb
make_taggable-0.6.3 db/migrate/2_create_make_taggable_taggings.rb