summaryrefslogtreecommitdiff
path: root/db/migrate/20241020144326_create_wines.rb
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2024-11-11 16:55:14 +0100
committerMarius Peter <marius.peter@tutanota.com>2024-11-11 16:55:14 +0100
commitfea9476a591559bd8fdcf17b64e5114c592a5b08 (patch)
tree08aa0fdd62752f1d286aa66ac77413fb03d6d737 /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.rb15
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
Copyright 2019--2024 Marius PETER