From fea9476a591559bd8fdcf17b64e5114c592a5b08 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Mon, 11 Nov 2024 16:55:14 +0100 Subject: C'est l'heure d'assurer le suivi de quelques flacons! --- db/migrate/20241020144326_create_wines.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 db/migrate/20241020144326_create_wines.rb (limited to 'db/migrate/20241020144326_create_wines.rb') 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 -- cgit v1.2.3