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.1.1 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.1.0 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.167 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.166 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.165 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.164 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.163 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.162 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.161 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.160 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.159 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.158 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.157 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.156 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.155 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.153 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.152 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.151 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.149 db/migrate/20170608192234_create_pd_training_types.rb
renalware-core-2.0.148 db/migrate/20170608192234_create_pd_training_types.rb