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-1.1.1 db/migrate/2_port_to_carrierwave.rb
vesr-1.1.0 db/migrate/2_port_to_carrierwave.rb
vesr-1.0.1 db/migrate/2_port_to_carrierwave.rb
vesr-1.0.0 db/migrate/2_port_to_carrierwave.rb
vesr-0.13.1 db/migrate/2_port_to_carrierwave.rb
vesr-0.13.0 db/migrate/2_port_to_carrierwave.rb
vesr-0.12.7 db/migrate/2_port_to_carrierwave.rb
vesr-0.12.6 db/migrate/2_port_to_carrierwave.rb
vesr-0.12.5 db/migrate/2_port_to_carrierwave.rb
vesr-0.12.4 db/migrate/2_port_to_carrierwave.rb
vesr-0.12.3 db/migrate/2_port_to_carrierwave.rb
vesr-0.12.2 db/migrate/2_port_to_carrierwave.rb
vesr-0.12.1 db/migrate/2_port_to_carrierwave.rb
vesr-0.12.0 db/migrate/2_port_to_carrierwave.rb
vesr-0.11.9 db/migrate/2_port_to_carrierwave.rb
vesr-0.11.8 db/migrate/2_port_to_carrierwave.rb
vesr-0.11.7 db/migrate/2_port_to_carrierwave.rb
vesr-0.11.6 db/migrate/2_port_to_carrierwave.rb
vesr-0.11.5 db/migrate/2_port_to_carrierwave.rb
vesr-0.11.4 db/migrate/2_port_to_carrierwave.rb