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