summaryrefslogtreecommitdiff
path: root/app/models/crop.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/crop.rb')
-rw-r--r--app/models/crop.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/crop.rb b/app/models/crop.rb
new file mode 100644
index 0000000..b0f168d
--- /dev/null
+++ b/app/models/crop.rb
@@ -0,0 +1,4 @@
+class Crop < ApplicationRecord
+ has_many :rafts
+ enum :crop_type, { leafy: 0, fruit: 1, herb: 2 }
+end
Copyright 2019--2025 Marius PETER