summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-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