Sha256: e896495271d404427d096c91519da28d012eb218c1a9f94261c581ab22de2aa9
Contents?: true
Size: 510 Bytes
Versions: 36
Compression:
Stored size: 510 Bytes
Contents
class CreateAdmissionSpecialties < ActiveRecord::Migration[5.2] def change within_renalware_schema do create_table :admission_specialties do |t| t.string :name, null: false, index: { unique: true } t.integer :position, null: false, default: 0 t.timestamps null: false end add_reference( :admission_consults, :specialty, foreign_key: { to_table: :admission_specialties }, index: true, null: true ) end end end
Version data entries
36 entries across 36 versions & 1 rubygems