title: How to customize Yii 2 RBAC table names
body: <p>Is there anyway that we can change the RBAC table names in yii 2?</p>
  
  <p>i configured the authManager as below,</p>
  
  <pre><code>'authManager' =&gt; [
      'class' =&gt; 'yii\rbac\DbManager',
      'assignmentTable'=&gt; '{{%AuthAssignment}}',
      'itemChildTable'=&gt; '{{%AuthItemChild}}',
      'itemTable'=&gt; '{{%AuthItem}}',
      'ruleTable'=&gt; '{{%AuthRule}}',
      'defaultRoles' =&gt; ['guest'],
  ],
  </code></pre>
  
  <p>Now i need to know how to customize the column names as well. yii by default queries to default column names, so i am getting this error.</p>
  
  <pre><code>Column not found: 1054 Unknown column 'rule_name' in 'field list'
  </code></pre>
  
  <p>below is how my table structure differs with yii 2 default RBAC tables.</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `AuthRule` (
    `name` varchar(64) NOT NULL,
    `data` text,
    `createdAt` int(11) DEFAULT NULL,
    `updatedAt` int(11) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  CREATE TABLE IF NOT EXISTS `AuthItemChild` (
    `parent` varchar(64) NOT NULL,
    `child` varchar(64) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  CREATE TABLE IF NOT EXISTS `AuthItem` (
    `name` varchar(64) NOT NULL,
    `type` int(11) NOT NULL,
    `description` text,
    `ruleName` varchar(64) DEFAULT NULL,
    `data` text,
    `createdAt` int(11) DEFAULT NULL,
    `updatedAt` int(11) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  CREATE TABLE IF NOT EXISTS `AuthAssignment` (
    `itemName` varchar(64) NOT NULL,
    `userId` varchar(64) NOT NULL,
    `createdAt` int(11) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  </code></pre>