Files
codeocean/db/migrate/20140626144036_create_submissions.rb
2021-05-14 22:03:06 +02:00

14 lines
267 B
Ruby

# frozen_string_literal: true
class CreateSubmissions < ActiveRecord::Migration[4.2]
def change
create_table :submissions do |t|
t.text :code
t.belongs_to :exercise
t.float :score
t.belongs_to :user
t.timestamps
end
end
end