13 lines
274 B
Ruby
13 lines
274 B
Ruby
|
class CreateGrades < ActiveRecord::Migration[5.0]
|
||
|
def change
|
||
|
create_table :grades do |t|
|
||
|
t.references :lecture, foreign_key: true
|
||
|
t.references :student, foreign_key: true
|
||
|
t.numeric :grade
|
||
|
t.string :comment
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|