Skip to content

Instantly share code, notes, and snippets.

@m-nakamura145
Created October 17, 2018 05:11
Show Gist options
  • Save m-nakamura145/0d02fcff568d824f6dac14c1ec8c144c to your computer and use it in GitHub Desktop.
Save m-nakamura145/0d02fcff568d824f6dac14c1ec8c144c to your computer and use it in GitHub Desktop.
[16] pry(main)> rsv.update_columns(status: 2)
Reservation Update (4.4ms) UPDATE `reservations` SET `status` = 2 WHERE `reservations`.`id` = 1
=> true
[17] pry(main)> rsv.previous_changes
=> {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment