Sha256: 92f117f09dba023f6b5b8f32bba334fbe71efa86a5c6a018ef808f9d74e69e1e

Contents?: true

Size: 312 Bytes

Versions: 1

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

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

      t.references :level, null: false, index: true, foreign_key: true
      t.references :unit, 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/grade.rb