title: grails h2 database create table
body: <p>I have a really simple domain class</p>
  
  <pre><code>class Person {
  
    String code
  
  }
  </code></pre>
  
  <p>And I am also using default DataSource configuration:</p>
  
  <pre><code>dataSource {
    pooled = true
    driverClassName = "org.h2.Driver"
    username = "sa"
    password = ""
  }
  hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = false
    cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
  }
  // environment specific settings
  environments {
    development {
      dataSource {
        dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', ''
        url = "jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000"
        dialect = "org.hibernate.dialect.H2Dialect"
      }
    } ...
  </code></pre>
  
  <p>But when I open /dbconsole then I see that DB is empty and there is no tables. Why? What I am doing wrong?</p>