mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-10-31 20:14:26 +00:00
f54dca06a9
Since Rails 5.1 missing migration version results in following error: ``` StandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for: ``` This PR fixes all migration files.
11 lines
334 B
Ruby
11 lines
334 B
Ruby
class AddMissingIndices < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_index :users, :account_id
|
|
add_index :statuses, :account_id
|
|
add_index :statuses, :in_reply_to_id
|
|
add_index :statuses, :reblog_of_id
|
|
add_index :stream_entries, :account_id
|
|
add_index :stream_entries, [:activity_id, :activity_type]
|
|
end
|
|
end
|