class CreateLibraryItemConditions < ActiveRecord::Migration[6.0]
  def change
    create_table :library_item_conditions do |t|
      t.references :school, type: :integer, null: false,
        foreign_key: { to_table: :Schools, primary_key: :SchoolID }

      t.string :name, null: false, limit: 32
      t.string :description

      t.timestamps
    end
  end
end
