Sha256: 5b19b547b5329c081fd1cb54d8db7623f3b642721355a6056afb8d639a388bda
Contents?: true
Size: 569 Bytes
Versions: 18
Compression:
Stored size: 569 Bytes
Contents
class RemoveProjectionFromStopAreas < ActiveRecord::Migration def up if column_exists? :stop_areas, :x remove_column :stop_areas, :x end if column_exists? :stop_areas, :y remove_column :stop_areas, :y end if column_exists? :stop_areas, :projection_type remove_column :stop_areas, :projection_type end end def down add_column :stop_areas, :x, :decimal,:precision => 19, :scale => 2 add_column :stop_areas, :y, :decimal,:precision => 19, :scale => 2 add_column :stop_areas, :projection_type, :string end end
Version data entries
18 entries across 18 versions & 1 rubygems