DevProgress / HillaryBNB

Home sharing app for Hillary Clinton supporters
Other
10 stars 13 forks source link

[Airbrake] [Production] can't write unknown attribute `accomodation_type` #60

Closed dsjoerg closed 8 years ago

dsjoerg commented 8 years ago

Airbrake error: #3800 Airbrake project: hillarybnb

Error type: ActiveModel::MissingAttributeError Error message: can't write unknown attributeaccomodation_type` **Where:**hostings#create **Occurred at:** Oct 12, 2016 00:58:19 UTC **First seen at:** Oct 12, 2016 00:58:19 UTC **Occurrences:** 0 (0 since last deploy on`)

URL: http://www.hillarybnb.com/hostings File: [GEM_ROOT]/gems/activerecord-4.2.7.1/lib/active_record/attribute.rb

Backtrace:

[GEM_ROOT]/gems/activerecord-4.2.7.1/lib/active_record/attribute.rb:138:in with_value_from_database
[GEM_ROOT]/gems/activerecord-4.2.7.1/lib/active_record/attribute_set.rb:39:in write_from_user
[GEM_ROOT]/gems/activerecord-4.2.7.1/lib/active_record/attribute_methods/write.rb:74:in write_attribute_with_type_cast
[GEM_ROOT]/gems/activerecord-4.2.7.1/lib/active_record/attribute_methods/write.rb:56:in write_attribute
dsjoerg commented 8 years ago

Not sure what's up with this. It happened when I tried to add a hosting. I thought this happened because I did a database migration to add the accomodation_type column to the hostings table but needed to restart heroku.

So I did a heroku restart and then added a hosting and it worked.

But then I looked in the DB and I had successfully added a hosting 4 hours ago, so now I don't know what the problem is or was.