Sha256: 54e8fe4edd6c0833f620379bece8aac0b623b2688407fc9452ed06386eaba598

Contents?: true

Size: 635 Bytes

Versions: 31

Compression:

Stored size: 635 Bytes

Contents

class AddCreatedByToPathologyCodeGroups < ActiveRecord::Migration[5.2]
  def change
    within_renalware_schema do
      change_table :pathology_code_groups do |t|
        t.references :created_by, foreign_key: { to_table: :users }, index: true, null: true
        t.references :updated_by, foreign_key: { to_table: :users }, index: true, null: true
      end

      change_table :pathology_code_group_memberships do |t|
        t.references :created_by, foreign_key: { to_table: :users }, index: true, null: true
        t.references :updated_by, foreign_key: { to_table: :users }, index: true, null: true
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

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