Skip to content

Instantly share code, notes, and snippets.

@attilagyorffy
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save attilagyorffy/8823278 to your computer and use it in GitHub Desktop.
Save attilagyorffy/8823278 to your computer and use it in GitHub Desktop.
diff --git a/db/schema.rb b/db/schema.rb
index 04a80c4..8a9dd68 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -170,9 +170,9 @@ ActiveRecord::Schema.define(version: 20140203154258) do
t.text "entry_requirements"
t.integer "application_option_id"
t.text "funding"
- t.string "institution_code", limit: 4
t.string "kis_course_id"
t.boolean "is_kis_course"
+ t.string "institution_code", limit: 4
end
add_index "courses", ["application_option_id"], name: "index_courses_on_application_option_id", using: :btree
@@ -336,6 +336,7 @@ ActiveRecord::Schema.define(version: 20140203154258) do
end
add_index "research_courses", ["school_id", "position"], name: "index_research_courses_on_school_id_and_position", using: :btree
+ add_index "research_courses", ["school_id"], name: "index_research_courses_on_school_id_and_name_and_award", using: :btree
create_table "research_groups", force: true do |t|
t.integer "external_id", null: false
@@ -383,6 +384,8 @@ ActiveRecord::Schema.define(version: 20140203154258) do
add_index "schools", ["external_id"], name: "index_schools_on_external_id", using: :btree
add_index "schools", ["faculty_id", "name"], name: "index_schools_on_faculty_id_and_name", using: :btree
+ add_index "schools", ["name"], name: "index_schools_on_name", using: :btree
+ add_index "schools", ["permalink"], name: "index_schools_on_permalink", using: :btree
create_table "schools_user_roles", force: true do |t|
t.integer "school_id", null: false
@@ -411,6 +414,8 @@ ActiveRecord::Schema.define(version: 20140203154258) do
t.integer "module_colour_id"
end
+ add_index "staff_lists", ["module_colour_id"], name: "index_staff_lists_on_module_colour_id", using: :btree
+
create_table "staff_lists_staff_member", force: true do |t|
t.integer "staff_member_id", null: false
t.integer "staff_list_id", null: false
@@ -474,6 +479,7 @@ ActiveRecord::Schema.define(version: 20140203154258) do
end
add_index "staff_quotes", ["article_id"], name: "index_staff_quotes_on_article_id", using: :btree
+ add_index "staff_quotes", ["module_colour_id"], name: "index_staff_quotes_on_module_colour_id", using: :btree
add_index "staff_quotes", ["staff_member_id"], name: "index_staff_quotes_on_staff_member_id", using: :btree
create_table "tab_groups", force: true do |t|
@@ -496,6 +502,8 @@ ActiveRecord::Schema.define(version: 20140203154258) do
t.boolean "all_schools"
end
+ add_index "user_roles", ["user_id"], name: "index_user_roles_on_user_id", using: :btree
+
create_table "users", force: true do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment