blob: e88abd3034f2a517a0ebfd46d2935d1a24456d60 (
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 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
|