Sha256: 17312e33a03ae20432be9919f5dc42af38e2b27f925addeb519ed9fe69259f52
Contents?: true
Size: 665 Bytes
Versions: 7
Compression:
Stored size: 665 Bytes
Contents
# frozen_string_literal: true class AllowNullZctaPlacesDemographics < ActiveRecord::Migration[5.0] def up if column_exists?(:us_geo_zcta_places, :population) change_column_null :us_geo_zcta_places, :population, true end if column_exists?(:us_geo_zcta_places, :housing_units) change_column_null :us_geo_zcta_places, :housing_units, true end end def down if column_exists?(:us_geo_zcta_places, :population) change_column_null :us_geo_zcta_places, :population, false end if column_exists?(:us_geo_zcta_places, :housing_units) change_column_null :us_geo_zcta_places, :housing_units, false end end end
Version data entries
7 entries across 7 versions & 1 rubygems