Sha256: 167b2fb9443201fc921161fb7be7bab6a65858495fc2d6d8bdbd890bf1f0dd13

Contents?: true

Size: 230 Bytes

Versions: 8

Compression:

Stored size: 230 Bytes

Contents

class AddAreaUnitToProp < ActiveRecord::Migration[5.0]
# https://www.sitepoint.com/enumerated-types-with-activerecord-and-postgresql/
  def change
    add_column :pwb_props, :area_unit, :integer, default: 0, index: true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pwb-1.4.0 db/migrate/20170205132427_add_area_unit_to_prop.rb
pwb-1.3.0 db/migrate/20170205132427_add_area_unit_to_prop.rb
pwb-1.2.0 db/migrate/20170205132427_add_area_unit_to_prop.rb
pwb-1.1.1 db/migrate/20170205132427_add_area_unit_to_prop.rb
pwb-1.0.0 db/migrate/20170205132427_add_area_unit_to_prop.rb
pwb-0.1.1 db/migrate/20170205132427_add_area_unit_to_prop.rb
pwb-0.1.0 db/migrate/20170205132427_add_area_unit_to_prop.rb
pwb-0.0.2 db/migrate/20170205132427_add_area_unit_to_prop.rb