Sha256: df20b2792a48a4099a67a31212103368a92120fb951ac3778630f99f071f88a6

Contents?: true

Size: 276 Bytes

Versions: 61

Compression:

Stored size: 276 Bytes

Contents

class DisableSomeAudits < ActiveRecord::Migration[5.1]
  def change
    add_column :reporting_audits, :enabled, :boolean, null: false, default: true
    connection.execute(
      "update reporting_audits set enabled = false where name in ('Bone', 'Anaemia');"
    )
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
renalware-core-2.0.64 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.63 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.62 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.61 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.60 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.58 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.57 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.56 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.55 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.54 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.53 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.52 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.51 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.50 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.48 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.47 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.46 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.45 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.44 db/migrate/20180216132741_disable_some_audits.rb
renalware-core-2.0.43 db/migrate/20180216132741_disable_some_audits.rb