diff options
author | Marius Peter <marius.peter@tutanota.com> | 2024-11-11 16:55:14 +0100 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2024-11-11 16:55:14 +0100 |
commit | fea9476a591559bd8fdcf17b64e5114c592a5b08 (patch) | |
tree | 08aa0fdd62752f1d286aa66ac77413fb03d6d737 /db/migrate/20241020144326_create_wines.rb |
C'est l'heure d'assurer le suivi de quelques flacons!main
Diffstat (limited to 'db/migrate/20241020144326_create_wines.rb')
-rw-r--r-- | db/migrate/20241020144326_create_wines.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20241020144326_create_wines.rb b/db/migrate/20241020144326_create_wines.rb new file mode 100644 index 0000000..d969b0a --- /dev/null +++ b/db/migrate/20241020144326_create_wines.rb @@ -0,0 +1,15 @@ +class CreateWines < ActiveRecord::Migration[7.2] + def change + create_table :wines do |t| + t.string :name + t.integer :year + t.string :variety + t.string :region + t.decimal :price + t.integer :stock + t.text :notes + + t.timestamps + end + end +end |