Transactions in Lucid Models


#1

Hello, Lucid models has transaction support?

I tried use Database class, more not work.

await Database.transaction(async (trx) => {
                await tenant.save()
                await tenant.users().save(user)
})

#2

I found my answer here http://adonisjs.com/docs/4.0/lucid#_transactions