Closed Masa321 closed 10 years ago
printerのテーブルにmaterial colorを追加したい
現在のmigrate状況
create_table "data", force: true do |t| t.string "stl_url" t.string "gcode_url" t.decimal "output_time" t.boolean "finish_signal" t.string "data_id" t.datetime "created_at" t.datetime "updated_at" end
create_table "printers", force: true do |t| t.string "material" t.string "machinemodel" t.decimal "sizex" t.decimal "sizey" t.decimal "sizez" t.decimal "resolution" t.text "location" t.string "image_url" t.boolean "condition" t.integer "user_id" t.datetime "created_at" t.datetime "updated_at" end
create_table "users", force: true do |t| t.string "email", default: "", null: false t.string "encrypted_password", default: "", null: false t.string "reset_password_token" t.datetime "reset_password_sent_at" t.datetime "remember_created_at" t.integer "sign_in_count", default: 0, null: false t.datetime "current_sign_in_at" t.datetime "last_sign_in_at" t.string "current_sign_in_ip" t.string "last_sign_in_ip" t.datetime "created_at" t.datetime "updated_at" end
add_index "users", ["email"], name: "index_users_on_email", unique: true add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
Printerのmaterial情報はStringではなく、pre-definedされた情報からの選択による入力のほうがよい