# Example migration
class AddIndexOnUsersCreatedAt < ActiveRecord::Migration[7.1]
  def change
    add_index :users, :last_name
  end
end
```
:::

**Related:**
  - Add an index on the `created_at` column
</Option>

<Option name="`self.default_sort_direction`">

<VersionReq version="3.11.5" />

By default, Avo sorts records in descending order of the default sort column. However, you can customize this using the `self.default_sort_direction` option in your resource file.

#### Default

`:desc`

#### Possible values

Either `:desc` (descending) or `:asc` (ascending).

```ruby
class Avo::Resources::Task < Avo::BaseResource
  self.default_sort_column = :position
  self.default_sort_direction = :asc

  # ...
end
```

</Option>

<Option name="`self.controls_placement`">

<VersionReq version="3.13.7" />

:::warning
<VersionReq version="3.16.3" /> `controls_placement` option is **obsolete**.

Check row controls configuration on table view instead
:::

By default, Avo renders action controls according to the `controls_placement` configuration, which is set to `right` by default. This value can be customized for each individual resource.

#### Possible values

Either `:left`, `:right` or `:both`

```ruby{3}