```ruby
class AddAccountsTaxInOut < ActiveRecord::Migration
  def change
    PgTools.with_schemas except: 'common' do
      change_table :accounts do |t|
        t.boolean :tax_in_out, default: false
        t.index :tax_in_out
      end
    end
  end
end
```

Add index after adding column
user
```ruby
class AddAccountsTaxInOut < ActiveRecord::Migration
  def change
    PgTools.with_schemas except: 'common' do
      change_table :accounts do |t|
        t.boolean :tax_in_out, default: false
      end
      add_index :accounts, :tax_id
    end
  end
end
```
assistant