Sha256: b3bb2dad25cdf1bfc7cd06970052792759a0728870ef35d4cc90ae32668ca807

Contents?: true

Size: 578 Bytes

Versions: 98

Compression:

Stored size: 578 Bytes

Contents

class UpdateAuditLettersAuthorsToVersion3 < ActiveRecord::Migration[5.1]
  def change
    within_renalware_schema do
      update_view :reporting_main_authors_audit,
                  materialized: true,
                  version: 3,
                  revert_to_version: 2

      reversible do |direction|
        direction.up {
          connection.execute("refresh materialized view reporting_main_authors_audit;")
        }
        direction.down {
          connection.execute("refresh materialized view reporting_main_authors_audit;")
        }
      end
    end
  end
end

Version data entries

98 entries across 98 versions & 1 rubygems

Version Path
renalware-core-2.0.147 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.146 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.145 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.144 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.143 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.142 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.141 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.140 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.139 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.138 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.137 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.136 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.135 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.134 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.133 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.132 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.131 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.130 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.129 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb
renalware-core-2.0.128 db/migrate/20180718172750_update_audit_letters_authors_to_version_3.rb