Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

adonisjs column default value

this.alter('mytable', (table) => {
	table.boolean('columnxxxxx').defaultTo(true)
	table.boolean('columnyyyyy').defaultTo(true)
})
Source by forum.adonisjs.com #
 
PREVIOUS NEXT
Tagged: #adonisjs #column #default
ADD COMMENT
Topic
Name
9+9 =