Sha256: 809db9555b72765fb171a9226c415921466f4956341189dbba07e37bc8b24dbf

Contents?: true

Size: 318 Bytes

Versions: 2

Compression:

Stored size: 318 Bytes

Contents

class ChangeLengthNameForPhysicalRoad < ActiveRecord::Migration
  def up
    remove_column :physical_roads, :length
    add_column :physical_roads, :length_in_meter, :float, :default => 0
  end

  def down
    remove_column :physical_roads, :length_in_meter
    add_column :physical_roads, :length, :integer
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_road-0.0.3 db/migrate/20130607114951_change_length_name_for_physical_road.rb
active_road-0.0.2 db/migrate/20130607114951_change_length_name_for_physical_road.rb