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

14 lines
359 B
Ruby

# frozen_string_literal: true
class AddUserFeedback < ActiveRecord::Migration[4.2]
def change
create_table :user_exercise_feedbacks do |t|
t.belongs_to :exercise, null: false
t.belongs_to :user, polymorphic: true, null: false
t.integer :difficulty
t.integer :working_time_seconds
t.string :feedback_text
end
end
end