summaryrefslogtreecommitdiff
path: root/db/migrate/20250823140019_create_crops.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20250823140019_create_crops.rb')
-rw-r--r--db/migrate/20250823140019_create_crops.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/db/migrate/20250823140019_create_crops.rb b/db/migrate/20250823140019_create_crops.rb
new file mode 100644
index 0000000..e88abd3
--- /dev/null
+++ b/db/migrate/20250823140019_create_crops.rb
@@ -0,0 +1,26 @@
+class CreateCrops < ActiveRecord::Migration[8.0]
+ def change
+ create_table :crops do |t|
+ t.string :name
+ t.integer :crop_type, null: false, default: 1
+ t.float :nno3
+ t.float :p
+ t.float :k
+ t.float :ca
+ t.float :mg
+ t.float :s
+ t.float :na
+ t.float :cl
+ t.float :si
+ t.float :fe
+ t.float :zn
+ t.float :b
+ t.float :mn
+ t.float :cu
+ t.float :mo
+ t.float :nnh4
+
+ t.timestamps
+ end
+ end
+end
Copyright 2019--2025 Marius PETER