diff --git a/app/serializers/location_serializer.rb b/app/serializers/location_serializer.rb index e3b67828..c024b017 100644 --- a/app/serializers/location_serializer.rb +++ b/app/serializers/location_serializer.rb @@ -1,3 +1,3 @@ class LocationSerializer < ActiveModel::Serializer - attributes :va_accepted, :address1, :address2, :city, :state, :zip + attributes :va_accepted, :address1, :address2, :city, :state, :zip, :provides_housing end diff --git a/db/migrate/20191005191332_add_provides_housing_to_location.rb b/db/migrate/20191005191332_add_provides_housing_to_location.rb new file mode 100644 index 00000000..6019d3bf --- /dev/null +++ b/db/migrate/20191005191332_add_provides_housing_to_location.rb @@ -0,0 +1,5 @@ +class AddProvidesHousingToLocation < ActiveRecord::Migration[5.0] + def change + add_column :locations, :provides_housing, :boolean, :default => false + end +end