Sha256: 0625ecb440e1e63507771453fff60cbbe0389fd6a89aa7965236a7ab8745d983

Contents?: true

Size: 356 Bytes

Versions: 42

Compression:

Stored size: 356 Bytes

Contents

class PortToCarrierwave < ActiveRecord::Migration
  def up
    rename_column :esr_files, :filename, :file
    remove_column :esr_files, :content_type
    remove_column :esr_files, :size
  end
  
  def down
    add_column :esr_files, :size, :integer
    add_column :esr_files, :content_type, :string
    rename_column :esr_files, :file, :filename
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
vesr-0.11.3 db/migrate/2_port_to_carrierwave.rb
vesr-0.11.2 db/migrate/2_port_to_carrierwave.rb
vesr-0.11.1 db/migrate/2_port_to_carrierwave.rb
vesr-0.11.0 db/migrate/2_port_to_carrierwave.rb
vesr-0.10.1 db/migrate/2_port_to_carrierwave.rb
vesr-0.10.0 db/migrate/2_port_to_carrierwave.rb
vesr-0.9.0 db/migrate/2_port_to_carrierwave.rb
vesr-0.8.2 db/migrate/2_port_to_carrierwave.rb
vesr-0.8.1 db/migrate/2_port_to_carrierwave.rb
vesr-0.8.0 db/migrate/2_port_to_carrierwave.rb
vesr-0.7.0 db/migrate/2_port_to_carrierwave.rb
vesr-0.6.3 db/migrate/2_port_to_carrierwave.rb
vesr-0.6.2 db/migrate/2_port_to_carrierwave.rb
vesr-0.6.1 db/migrate/2_port_to_carrierwave.rb
vesr-0.6.0 db/migrate/2_port_to_carrierwave.rb
vesr-0.5.1 db/migrate/2_port_to_carrierwave.rb
vesr-0.5.0 db/migrate/2_port_to_carrierwave.rb
vesr-0.4.0 db/migrate/2_port_to_carrierwave.rb
vesr-0.3.1 db/migrate/2_port_to_carrierwave.rb
vesr-0.3.0 db/migrate/2_port_to_carrierwave.rb