98bb435f42
Migrations shouldn't fail RuboCop checks - especially lint checks, such as the nested method check. To avoid changing code in existing migrations, add the magic comment to the top of each of them to skip that file.
17 lines
637 B
Ruby
17 lines
637 B
Ruby
# rubocop:disable all
|
|
class AddIndexToCreatedAt < ActiveRecord::Migration
|
|
def change
|
|
add_index "users", [:created_at, :id]
|
|
add_index "members", [:created_at, :id]
|
|
add_index "projects", [:created_at, :id]
|
|
add_index "issues", [:created_at, :id]
|
|
add_index "merge_requests", [:created_at, :id]
|
|
add_index "milestones", [:created_at, :id]
|
|
add_index "namespaces", [:created_at, :id]
|
|
add_index "notes", [:created_at, :id]
|
|
add_index "identities", [:created_at, :id]
|
|
add_index "keys", [:created_at, :id]
|
|
add_index "web_hooks", [:created_at, :id]
|
|
add_index "snippets", [:created_at, :id]
|
|
end
|
|
end
|