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