Sha256: e04a76607b22fc3a954f42a25868fbbad00b61ddae9f538d28ae684067405769

Contents?: true

Size: 604 Bytes

Versions: 177

Compression:

Stored size: 604 Bytes

Contents

class AddAccountableToModalityModalities < ActiveRecord::Migration[4.2]
  def change
    add_column :modality_modalities, :created_by_id, :integer, null: false
    add_column :modality_modalities, :updated_by_id, :integer, null: false
    add_index :modality_modalities, :created_by_id
    add_index :modality_modalities, :updated_by_id

    add_foreign_key "modality_modalities", "users", column: "created_by_id",
      name: "modality_modalities_created_by_id_fk"
    add_foreign_key "modality_modalities", "users", column: "updated_by_id",
      name: "modality_modalities_updated_by_id_fk"
  end
end

Version data entries

177 entries across 177 versions & 1 rubygems

Version Path
renalware-core-2.0.104 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.103 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.102 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.101 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.100 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.99 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.98 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.97 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.96 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.95 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.94 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.93 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.92 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.91 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.90 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.89 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.88 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.87 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.86 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb
renalware-core-2.0.85 db/migrate/20161215090417_add_accountable_to_modality_modalities.rb