drop column adonisjs migration code example
Example: drop column adonisjs migration
down () {
//Remove Default Value Constraint
this.alter('mytable', (table) => {
table.boolean('column1')
table.boolean('column2')
})
//Remove Columns
this.alter('mytable', (table) => {
table.dropColumn('column1')
table.dropColumn('column2')
})
}