Sha256: c12e0a222ce32d8cd7b7f998787625616181891b867038cd122fdc8fa5c8d900

Contents?: true

Size: 474 Bytes

Versions: 6

Compression:

Stored size: 474 Bytes

Contents

class UseUuidWithActsAsTaggableReferences < ActiveRecord::Migration[4.2]
  def up
    remove_column :taggings, :taggable_id
    add_column    :taggings, :taggable_id, :uuid

    remove_column :taggings, :tagger_id
    add_column    :taggings, :tagger_id, :uuid
  end

  def down
    remove_column :taggings, :taggable_id
    add_column    :taggings, :taggable_id, :integer

    remove_column :taggings, :tagger_id
    add_column    :taggings, :tagger_id, :integer
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 db/migrate/20170830000002_use_uuid_with_acts_as_taggable_references.rb
cas-cms-1.0.0.alpha1 db/migrate/20170830000002_use_uuid_with_acts_as_taggable_references.rb
cas-cms-0.1.3 db/migrate/20170830000002_use_uuid_with_acts_as_taggable_references.rb
cas-cms-0.1.2 db/migrate/20170830000002_use_uuid_with_acts_as_taggable_references.rb
cas-cms-0.1.1 db/migrate/20170830000002_use_uuid_with_acts_as_taggable_references.rb
cas-cms-0.1.0 db/migrate/20170830000002_use_uuid_with_acts_as_taggable_references.rb