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.
This commit is contained in:
143
db/schema.rb
143
db/schema.rb
@ -11,13 +11,13 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20161216131239) do
|
||||
ActiveRecord::Schema.define(version: 20161214144837) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
create_table "code_harbor_links", force: true do |t|
|
||||
t.string "oauth2token"
|
||||
create_table "code_harbor_links", force: :cascade do |t|
|
||||
t.string "oauth2token", limit: 255
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.integer "user_id"
|
||||
@ -25,10 +25,10 @@ ActiveRecord::Schema.define(version: 20161216131239) do
|
||||
|
||||
add_index "code_harbor_links", ["user_id"], name: "index_code_harbor_links_on_user_id", using: :btree
|
||||
|
||||
create_table "comments", force: true do |t|
|
||||
create_table "comments", force: :cascade do |t|
|
||||
t.integer "user_id"
|
||||
t.integer "file_id"
|
||||
t.string "user_type"
|
||||
t.string "user_type", limit: 255
|
||||
t.integer "row"
|
||||
t.integer "column"
|
||||
t.text "text"
|
||||
@ -39,15 +39,15 @@ ActiveRecord::Schema.define(version: 20161216131239) do
|
||||
add_index "comments", ["file_id"], name: "index_comments_on_file_id", using: :btree
|
||||
add_index "comments", ["user_id"], name: "index_comments_on_user_id", using: :btree
|
||||
|
||||
create_table "consumers", force: true do |t|
|
||||
t.string "name"
|
||||
create_table "consumers", force: :cascade do |t|
|
||||
t.string "name", limit: 255
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "oauth_key"
|
||||
t.string "oauth_secret"
|
||||
t.string "oauth_key", limit: 255
|
||||
t.string "oauth_secret", limit: 255
|
||||
end
|
||||
|
||||
create_table "errors", force: true do |t|
|
||||
create_table "errors", force: :cascade do |t|
|
||||
t.integer "execution_environment_id"
|
||||
t.text "message"
|
||||
t.datetime "created_at"
|
||||
@ -57,123 +57,123 @@ ActiveRecord::Schema.define(version: 20161216131239) do
|
||||
|
||||
add_index "errors", ["submission_id"], name: "index_errors_on_submission_id", using: :btree
|
||||
|
||||
create_table "execution_environments", force: true do |t|
|
||||
t.string "docker_image"
|
||||
t.string "name"
|
||||
create_table "execution_environments", force: :cascade do |t|
|
||||
t.string "docker_image", limit: 255
|
||||
t.string "name", limit: 255
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "run_command"
|
||||
t.string "test_command"
|
||||
t.string "testing_framework"
|
||||
t.string "run_command", limit: 255
|
||||
t.string "test_command", limit: 255
|
||||
t.string "testing_framework", limit: 255
|
||||
t.text "help"
|
||||
t.string "exposed_ports"
|
||||
t.string "exposed_ports", limit: 255
|
||||
t.integer "permitted_execution_time"
|
||||
t.integer "user_id"
|
||||
t.string "user_type"
|
||||
t.string "user_type", limit: 255
|
||||
t.integer "pool_size"
|
||||
t.integer "file_type_id"
|
||||
t.integer "memory_limit"
|
||||
t.boolean "network_enabled"
|
||||
end
|
||||
|
||||
create_table "exercises", force: true do |t|
|
||||
create_table "exercises", force: :cascade do |t|
|
||||
t.text "description"
|
||||
t.integer "execution_environment_id"
|
||||
t.string "title"
|
||||
t.string "title", limit: 255
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.integer "user_id"
|
||||
t.text "instructions"
|
||||
t.boolean "public"
|
||||
t.string "user_type"
|
||||
t.string "token"
|
||||
t.string "user_type", limit: 255
|
||||
t.string "token", limit: 255
|
||||
t.boolean "hide_file_tree"
|
||||
t.boolean "allow_file_creation"
|
||||
t.boolean "allow_auto_completion", default: false
|
||||
t.boolean "allow_auto_completion", default: false
|
||||
end
|
||||
|
||||
create_table "external_users", force: true do |t|
|
||||
create_table "external_users", force: :cascade do |t|
|
||||
t.integer "consumer_id"
|
||||
t.string "email"
|
||||
t.string "external_id"
|
||||
t.string "name"
|
||||
t.string "email", limit: 255
|
||||
t.string "external_id", limit: 255
|
||||
t.string "name", limit: 255
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "file_templates", force: true do |t|
|
||||
t.string "name"
|
||||
create_table "file_templates", force: :cascade do |t|
|
||||
t.string "name", limit: 255
|
||||
t.text "content"
|
||||
t.integer "file_type_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "file_types", force: true do |t|
|
||||
t.string "editor_mode"
|
||||
t.string "file_extension"
|
||||
create_table "file_types", force: :cascade do |t|
|
||||
t.string "editor_mode", limit: 255
|
||||
t.string "file_extension", limit: 255
|
||||
t.integer "indent_size"
|
||||
t.string "name"
|
||||
t.string "name", limit: 255
|
||||
t.integer "user_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.boolean "executable"
|
||||
t.boolean "renderable"
|
||||
t.string "user_type"
|
||||
t.string "user_type", limit: 255
|
||||
t.boolean "binary"
|
||||
end
|
||||
|
||||
create_table "files", force: true do |t|
|
||||
create_table "files", force: :cascade do |t|
|
||||
t.text "content"
|
||||
t.integer "context_id"
|
||||
t.string "context_type"
|
||||
t.string "context_type", limit: 255
|
||||
t.integer "file_id"
|
||||
t.integer "file_type_id"
|
||||
t.boolean "hidden"
|
||||
t.string "name"
|
||||
t.string "name", limit: 255
|
||||
t.boolean "read_only"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "native_file"
|
||||
t.string "role"
|
||||
t.string "hashed_content"
|
||||
t.string "feedback_message"
|
||||
t.string "native_file", limit: 255
|
||||
t.string "role", limit: 255
|
||||
t.string "hashed_content", limit: 255
|
||||
t.string "feedback_message", limit: 255
|
||||
t.float "weight"
|
||||
t.string "path"
|
||||
t.string "path", limit: 255
|
||||
t.integer "file_template_id"
|
||||
end
|
||||
|
||||
add_index "files", ["context_id", "context_type"], name: "index_files_on_context_id_and_context_type", using: :btree
|
||||
|
||||
create_table "hints", force: true do |t|
|
||||
create_table "hints", force: :cascade do |t|
|
||||
t.integer "execution_environment_id"
|
||||
t.string "locale"
|
||||
t.string "locale", limit: 255
|
||||
t.text "message"
|
||||
t.string "name"
|
||||
t.string "regular_expression"
|
||||
t.string "name", limit: 255
|
||||
t.string "regular_expression", limit: 255
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "internal_users", force: true do |t|
|
||||
create_table "internal_users", force: :cascade do |t|
|
||||
t.integer "consumer_id"
|
||||
t.string "email"
|
||||
t.string "name"
|
||||
t.string "role"
|
||||
t.string "email", limit: 255
|
||||
t.string "name", limit: 255
|
||||
t.string "role", limit: 255
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "crypted_password"
|
||||
t.string "salt"
|
||||
t.integer "failed_logins_count", default: 0
|
||||
t.string "crypted_password", limit: 255
|
||||
t.string "salt", limit: 255
|
||||
t.integer "failed_logins_count", default: 0
|
||||
t.datetime "lock_expires_at"
|
||||
t.string "unlock_token"
|
||||
t.string "remember_me_token"
|
||||
t.string "unlock_token", limit: 255
|
||||
t.string "remember_me_token", limit: 255
|
||||
t.datetime "remember_me_token_expires_at"
|
||||
t.string "reset_password_token"
|
||||
t.string "reset_password_token", limit: 255
|
||||
t.datetime "reset_password_token_expires_at"
|
||||
t.datetime "reset_password_email_sent_at"
|
||||
t.string "activation_state"
|
||||
t.string "activation_token"
|
||||
t.string "activation_state", limit: 255
|
||||
t.string "activation_token", limit: 255
|
||||
t.datetime "activation_token_expires_at"
|
||||
end
|
||||
|
||||
@ -182,29 +182,38 @@ ActiveRecord::Schema.define(version: 20161216131239) do
|
||||
add_index "internal_users", ["remember_me_token"], name: "index_internal_users_on_remember_me_token", using: :btree
|
||||
add_index "internal_users", ["reset_password_token"], name: "index_internal_users_on_reset_password_token", using: :btree
|
||||
|
||||
create_table "request_for_comments", force: true do |t|
|
||||
t.integer "user_id", null: false
|
||||
t.integer "exercise_id", null: false
|
||||
t.integer "file_id", null: false
|
||||
create_table "lti_parameters", force: :cascade do |t|
|
||||
t.string "external_user_id"
|
||||
t.integer "consumers_id"
|
||||
t.integer "exercises_id"
|
||||
t.jsonb "lti_parameters", default: {}, null: false
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "user_type"
|
||||
end
|
||||
|
||||
create_table "request_for_comments", force: :cascade do |t|
|
||||
t.integer "user_id", null: false
|
||||
t.integer "exercise_id", null: false
|
||||
t.integer "file_id", null: false
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "user_type", limit: 255
|
||||
t.text "question"
|
||||
t.boolean "solved"
|
||||
t.integer "submission_id"
|
||||
end
|
||||
|
||||
create_table "submissions", force: true do |t|
|
||||
create_table "submissions", force: :cascade do |t|
|
||||
t.integer "exercise_id"
|
||||
t.float "score"
|
||||
t.integer "user_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "cause"
|
||||
t.string "user_type"
|
||||
t.string "cause", limit: 255
|
||||
t.string "user_type", limit: 255
|
||||
end
|
||||
|
||||
create_table "testruns", force: true do |t|
|
||||
create_table "testruns", force: :cascade do |t|
|
||||
t.boolean "passed"
|
||||
t.text "output"
|
||||
t.integer "file_id"
|
||||
|
Reference in New Issue
Block a user