Sha256: 78539a0a0d88a5f756492be78fa20720c3bb0c3ee03944b70df0338b4e2aa489

Contents?: true

Size: 241 Bytes

Versions: 1

Compression:

Stored size: 241 Bytes

Contents

# frozen_string_literal: true

class CreateUnitsTable < ActiveRecord::Migration[5.0]
  def change
    create_table :units do |t|
      t.string :name

      t.references :school, null: false, index: true, foreign_key: true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
breadcrumby-0.1.0 spec/support/db/migrate/unit.rb