I have a very basic application made with Grails with only one class.
class House {
Float price
String street
static constraints = {
}
}
I want to add the Boolean property called "favorite". So I add it:
class House {
Float price
String street
Boolean favorite
static constraints = {
}
}
But when I enter to http://localhost:8080/house/index I get this error:
Error 500: Internal Server Error
URI: /house/index Class: org.h2.jdbc.JdbcSQLException
Message: null
Caused by: Tabla "HOUSE" no encontrada Table "HOUSE" not found; SQL statement: select count(*) as y0_ from house this_ [42102-194]
Around line 13 of grails-app/controllers/inmo/HouseController.groovy
def index(Integer max) {
params.max = Math.min(max ?: 10, 100)
respond House.list(params), model:[houseCount:House.count()]
}
So I tried executing generate-controller or generate-all (with or without -force because I don't have important data in the database) but I still get the error.
What shoud I do after modifying the domain?