Install ruby-state-machines-activerecord by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-state-machines-activerecord
Description:
State machines Active Record Integration
The Active Record integration adds support for database transactions, automatically saving the record, named scopes, validation errors. . This library replaces state_machine.
Homepage: https://github.com/state-machines/state_machines-activerecord
Version: 0.4.0-1
Section: universe/ruby