rfcmarques / beer-inventory

An inventory management system for my own collection of craft beer
0 stars 0 forks source link

Create a new Model for containers #1

Closed rfcmarques closed 7 months ago

rfcmarques commented 8 months ago

Create the Container model. This model will store data regarding containers such as

This model will have a relationship with the Items model in the following circumstances

Create a factory and a seeder that will automatically seed the database with the containers that you already have:

  1. 'Bottle 250ml',
  2. 'Bottle 330ml',
  3. 'Bottle 375ml',
  4. 'Bottle 500ml',
  5. 'Bottle 750ml',
  6. 'Can 330ml',
  7. 'Can 355ml',
  8. 'Can 440ml',
  9. 'Can 473ml'

For now, this container doesn't need any controller although one can be created to be easier to create new containers in the future.

rfcmarques commented 7 months ago

Created the Model and the corresponding migration, factory and seeder

And added the ContainerSeeder to the DatabaseSeeder. Don't forget to run this when the doing migrate fresh

rfcmarques commented 7 months ago