adonis-acl
adonis-acl copied to clipboard
How to change plural table names?
Hello everyone, My database uses a unique naming, would you like to know if it is possible to change the table names from roles to role and permissions to permission?
Hello, @viniciussvl, I believe that you need to change the name of the table in the migration
up () {
this.create('permission', table => {
table.increments()
table.string('slug').notNullable().unique()
table.string('name').notNullable().unique()
table.text('description').nullable()
table.timestamps()
})
}
Hello, @viniciussvl, I believe that you need to change the name of the table in the migration
this.create('permission', table => { table.increments() table.string('slug').notNullable().unique() table.string('name').notNullable().unique() table.text('description').nullable() table.timestamps() }) }```
Thank you!