DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for: class MigrationClass < ActiveRecord::Migration[4.2] (called from require at bin/rails:4)
8 lines
178 B
Ruby
8 lines
178 B
Ruby
class AddIndexToValuationComments < ActiveRecord::Migration[4.2]
|
|
disable_ddl_transaction!
|
|
|
|
def change
|
|
add_index :comments, :valuation, algorithm: :concurrently
|
|
end
|
|
end
|