Sha256: 5695b164704743cb9828a6baf957ec9646ffd4366427b68243033fc43d3858c7

Contents?: true

Size: 304 Bytes

Versions: 20

Compression:

Stored size: 304 Bytes

Contents

class CachesContextAsHash < ActiveRecord::Migration
  def self.up
    execute "DELETE FROM caches"
    remove_column :caches, :context
    add_column :caches, :context, :integer
  end

  def self.down
    remove_column :caches, :context
    add_column :caches, :context, :string, :limit => 200
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
zena-1.2.8 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.2.7 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.2.6 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.2.5 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.2.4 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.2.3 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.2.2 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.2.1 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.2.0 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.1.3 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.1.2 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.1.1 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.1.0 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.0.0 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.0.0.rc3 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.0.0.rc2 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.0.0.rc1 db/fix/old_migrations/032_caches_context_as_hash.rb
zena-1.0.0.beta3 db/migrate/032_caches_context_as_hash.rb
zena-1.0.0.beta2 db/migrate/032_caches_context_as_hash.rb
zena-1.0.0.beta1 db/migrate/032_caches_context_as_hash.rb