Answers for "adonisjs column default value"

1

adonisjs column default value

this.alter('mytable', (table) => {
	table.boolean('columnxxxxx').defaultTo(true)
	table.boolean('columnyyyyy').defaultTo(true)
})
Posted by: Guest on December-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language