
@Ralf TODO: migration /Users/groucho/Documents/HPI/workspace/Xikolo-CodeOcean/codeocean/db/migrate/20160204111716_add_user_to_code_harbor_link.rb is broken. A reference is made to table users which does not exist. Workaround: run rake db:schema:load before running db:migrate. Still this should be fixed.
12 lines
293 B
Ruby
12 lines
293 B
Ruby
class CreateLtiParameters < ActiveRecord::Migration
|
|
def change
|
|
create_table :lti_parameters do |t|
|
|
t.string :external_user_id
|
|
t.belongs_to :consumers
|
|
t.belongs_to :exercises
|
|
t.jsonb :lti_parameters, null: false, default: '{}'
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end |