Skip to content

Commit

Permalink
[Issue OperationCode#397] Add default: false because I can't read bas…
Browse files Browse the repository at this point in the history
…ic ticket requirements
  • Loading branch information
colto committed Oct 8, 2018
1 parent 85e6290 commit 0252d67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class AddProvidesHousingToLocation < ActiveRecord::Migration[5.0]
def change
add_column :locations, :provides_housing, :boolean
add_column :locations, :provides_housing, :boolean, default: false
end
end
6 changes: 3 additions & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@
t.string "state"
t.integer "zip"
t.integer "code_school_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "provides_housing"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "provides_housing", default: false
t.index ["code_school_id"], name: "index_locations_on_code_school_id", using: :btree
end

Expand Down

0 comments on commit 0252d67

Please sign in to comment.