Sha256: 11f7224deef7fbebf6947bb1f24ddeb931f28d5b67e16216323a5c63dbc75f11
Contents?: true
Size: 567 Bytes
Versions: 177
Compression:
Stored size: 567 Bytes
Contents
class CreateHDDryWeights < ActiveRecord::Migration[4.2] def change create_table :hd_dry_weights do |t| t.belongs_to :patient, index: true, foreign_key: true t.float :weight, null: false t.date :assessed_on, null: false t.belongs_to :created_by, index: true, null: false t.belongs_to :updated_by, index: true, null: false t.timestamps null: false end add_reference :hd_dry_weights, :assessor, references: :users, index: true, null: false add_foreign_key :hd_dry_weights, :users, column: :assessor_id end end
Version data entries
177 entries across 177 versions & 1 rubygems