Sha256: 014e5055ba45c5bc2692414bb0798b7fca73f52a6d40f1ecd8137d56a62600ab
Contents?: true
Size: 476 Bytes
Versions: 8
Compression:
Stored size: 476 Bytes
Contents
class AlterTaggableIdToString < ActiveRecord::Migration def self.up remove_index :taggings, [:taggable_id, :taggable_type, :context] change_column :taggings, :taggable_id, :string add_index :taggings, [:taggable_id, :taggable_type, :context] end def self.down remove_index :taggings, [:taggable_id, :taggable_type, :context] change_column :taggings, :taggable_id, :integer add_index :taggings, [:taggable_id, :taggable_type, :context] end end
Version data entries
8 entries across 8 versions & 1 rubygems