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