Sha256: 517b46bdfe550d513fc54168db6585ce762bab485482280049d362a291a4f55b

Contents?: true

Size: 337 Bytes

Versions: 3

Compression:

Stored size: 337 Bytes

Contents

class AddReportingIndexes < ActiveRecord::Migration[5.1]
  def up
    connection.execute(<<-SQL)
      CREATE INDEX pathology_observations_created_on ON pathology_observations USING btree ((created_at::date));
    SQL
  end

  def down
    connection.execute(<<-SQL)
      DROP INDEX pathology_observations_created_on;
    SQL
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
renalware-core-2.0.47 db/migrate/20180831134606_add_reporting_indexes.rb
renalware-core-2.0.46 db/migrate/20180831134606_add_reporting_indexes.rb
renalware-core-2.0.45 db/migrate/20180831134606_add_reporting_indexes.rb