Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Added housing_provided column to locations table, defaulting to false #515

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/serializers/location_serializer.rb
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions db/migrate/20191005191332_add_provides_housing_to_location.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddProvidesHousingToLocation < ActiveRecord::Migration[5.0]
def change
add_column :locations, :provides_housing, :boolean, :default => false
end
end