{"ref":"refs/heads/schneems/migration-error","push_id":55198492,"commits":[{"sha":"b2de83dee913a3612d3183518d77f30efe7f69e9","author":{"email":"a1b4a5d79a04170be8c419b6b204d1834682e890@gmail.com","name":"schneems"},"url":"https://api.github.com/repos/schneems/rails/commits/b2de83dee913a3612d3183518d77f30efe7f69e9","message":"class method to check if current migration is last\n\nWe can use this to check if a migration is needed\non the database."},{"sha":"2da3a705a710c47b711beb6d67e65dbe5906f48b","author":{"email":"a1b4a5d79a04170be8c419b6b204d1834682e890@gmail.com","name":"schneems"},"url":"https://api.github.com/repos/schneems/rails/commits/2da3a705a710c47b711beb6d67e65dbe5906f48b","message":"Give helpful message on UnknownAttributeError\n\nIf an UnknownAttributeError is raised and the migration of the system is not current it is likely that the attribute expected was introduced in a migration that has not yet run, so when we get this error, we can check to see if there are migrations that need to be run and if so add a useful help text to the error message telling the user to run the migrations if they have not already done so."},{"sha":"3b34e38acd05752267a969b5e330b42c5c8a1b3e","author":{"email":"a1b4a5d79a04170be8c419b6b204d1834682e890@gmail.com","name":"schneems"},"url":"https://api.github.com/repos/schneems/rails/commits/3b34e38acd05752267a969b5e330b42c5c8a1b3e","message":"Give helpful message on NoMethodError\n\nIf an NoMethodError is raised and the migration of the system is not current it is likely that the attribute expected was introduced in a migration that has not yet run, so when we get this error, we can check to see if there are migrations that need to be run and if so add a useful help text to the error message telling the user to run the migrations if they have not already done so."},{"sha":"4d16f856deb89d573e3e42545dc1d8752beafcd4","author":{"email":"a1b4a5d79a04170be8c419b6b204d1834682e890@gmail.com","name":"schneems"},"url":"https://api.github.com/repos/schneems/rails/commits/4d16f856deb89d573e3e42545dc1d8752beafcd4","message":"UnknownAttributeError msg to match NoMethodError\n\nThe message raised by NoMethodError in ActiveRecord contains the instance where the error occurred, the instance#to_s contains the class name which is useful for debugging. I updated the error message raised from UnknownAttributeError from ActiveRecord to better match the error message given from NoMethodError."}],"head":"4d16f856deb89d573e3e42545dc1d8752beafcd4","size":4}