summaryrefslogtreecommitdiff
path: root/db/migrate/20250824121914_create_fertilizer_components.rb
blob: 2e08fffab23b11864260ab79d4125c5c36b395c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class CreateFertilizerComponents < ActiveRecord::Migration[8.0]
  def change
    create_table :fertilizer_components do |t|
      t.string :name
      t.string :formula
      t.float :nno3
      t.float :nnh4
      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.timestamps
    end
  end
end
Copyright 2019--2025 Marius PETER