Sha256: 06fcb34a29fefc4249593cef9798aeb227c357f50a2c45ae54cdee704a719dd8

Contents?: true

Size: 486 Bytes

Versions: 177

Compression:

Stored size: 486 Bytes

Contents

class CreatePDTrainingTypes < ActiveRecord::Migration[5.0]
  def change
    create_table :pd_training_types do |t|
      t.string :name, null: false
      t.datetime :deleted_at

      t.timestamps null: false
    end

    add_reference :pd_training_sessions, :training_type,
    references: :pd_training_types, null: false, index: true

    add_foreign_key "pd_training_sessions", "pd_training_types",
    column: "training_type_id", name: "pd_training_sessions_type_id_fk"

  end
end

Version data entries

177 entries across 177 versions & 1 rubygems

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