Files
codeocean/db/migrate/20161214144837_create_lti_parameters.rb
Tom Staubitz ca28e0aa87 updated rails from 4.1.13 to 4.2.5. This is required for rails to make use of new features in postgres 9.5
@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.
2016-12-31 00:05:23 +01:00

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