Sha256: 5f29a10abf1a93e060b9695784dd9db679bc849df6c59f619596a6a147b5b393

Contents?: true

Size: 491 Bytes

Versions: 35

Compression:

Stored size: 491 Bytes

Contents

class CreatePathologyVersions < ActiveRecord::Migration[5.2]
  def change
    within_renalware_schema do
      create_table :pathology_versions do |t|
        t.string   :item_type, null: false
        t.integer  :item_id,   null: false
        t.string   :event,     null: false
        t.string   :whodunnit
        t.jsonb    :object
        t.jsonb    :object_changes
        t.datetime :created_at
      end
      add_index :pathology_versions, [:item_type, :item_id]
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
renalware-core-2.1.1 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.1.0 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.167 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.166 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.165 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.164 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.163 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.162 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.161 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.160 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.159 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.158 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.157 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.156 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.155 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.153 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.152 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.151 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.149 db/migrate/20200127165951_create_pathology_versions.rb
renalware-core-2.0.148 db/migrate/20200127165951_create_pathology_versions.rb