Simple Rails App to add Licenses to your projects.
Manage licenses:
- Access to Database with
rails console
- Retrieve all products:
Product.all
- Retrieve all licenses:
License.all
- Look for a license:
License.where(key: "KEY")
- Update a license
- Get the
license_id
looking for your license l = License.find(license_id)
l.quantity = 6
(example)l.save
- Retrieve activations:
Activation.where(license_id: license_id)
- Count activations:
Activation.where(license_id: license_id).count
- Create a product or license:
Product.create
/License.create
/l = License.new
andl.save
https://guides.rubyonrails.org/active_record_basics.html#create