<commit_before># encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20160406175524) do

  create_table "answers", :force => true do |t|
    t.text     "text"
    t.integer  "plan_id"
    t.integer  "user_id"
    t.integer  "question_id"
    t.datetime "created_at",  :null => false
    t.datetime "updated_at",  :null => false
  end

  create_table "answers_options", :id => false, :force => true do |t|
    t.integer "answer_id", :null => false
    t.integer "option_id", :null => false
  end

  add_index "answers_options", ["answer_id", "option_id"], :name => "index_answers_options_on_answer_id_and_option_id"

  create_table "comments", :force => true do |t|
    t.integer  "user_id"
    t.integer  "question_id"
    t.text     "text"
    t.datetime "created_at",  :null => false
    t.datetime "updated_at",  :null => false
    t.boolean  "archived"
    t.integer  "plan_id"
    t.integer  "archived_by"
  end

  create_table "dmptemplate_translations", :force => true do |t|
    t.integer  "dmptemplate_id"
    t.string   "locale",         :null => false
    t.datetime "created_at",     :null => false
    t.datetime "updated_at",     :null => false
    t.string   "title"
    t.text     "description"
  end

  add_index "dmptemplate_translations", ["dmptemplate_id"], :name => "index_dmptemplate_translations_on_dmptemplate_id"
  add_index "dmptemplate_translations", ["locale"], :name => "index_dmptemplate_translations_on_locale"

  create_table "dmptemplates", :force => true do |t|
    t.string   "title"
    t.text     "description"
    t.boolean  "published"
    t.integer  "user_id"
    t.integer  "organisation_id"
    t.datetime "created_at",      :null => false
    t.datetime "updated_at",      :null => false
    t.string   "locale"
    t.boolean  "is_default"
  end

  create_table "dmptemplates_guidance_groups", :id => false, :force => true do |t|
    t.integer "dmptemplate_id"
    t.integer "guidance_group_id"
  end

  create_table "exported_plans", :force => true do |t|
    t.integer  "plan_id"
    t.integer  "user_id"
    t.string   "format"
    t.datetime "created_at", :null => false
    t.datetime "updated_at", :null => false
  end

  create_table "file_types", :force => true do |t|
    t.string   "name"
    t.string   "icon_name"
    t.integer  "icon_size"
    t.string   "icon_location"
    t.datetime "created_at",    :null => false
    t.datetime "updated_at",    :null => false
  end

  create_table "file_uploads", :force => true do |t|
    t.string   "name"
    t.string   "title"
    t.text     "description"
    t.integer  "size"
    t.boolean  "published"
    t.string   "location"
    t.integer  "file_type_id"
    t.datetime "created_at",   :null => false
    t.datetime "updated_at",   :null => false
  end

  create_table "friendly_id_slugs", :force => true do |t|
    t.string   "slug",                         :null => false
    t.integer  "sluggable_id",                 :null => false
    t.string   "sluggable_type", :limit => 40
    t.datetime "created_at"
  end

  add_index "friendly_id_slugs", ["slug", "sluggable_type"], :name => "index_friendly_id_slugs_on_slug_and_sluggable_type", :unique => true
  add_index "friendly_id_slugs", ["sluggable_id"], :name => "index_friendly_id_slugs_on_sluggable_id"
  add_index "friendly_id_slugs", ["sluggable_type"], :name => "index_friendly_id_slugs_on_sluggable_type"

  create_table "guidance_groups", :force => true do |t|
    t.string   "name"
    t.integer  "organisation_id"
    t.datetime "created_at",      :null => false
    t.datetime "updated_at",      :null => false
    t.boolean  "optional_subset"
    t.boolean  "published"
  end

  create_table "guidance_in_group", :id => false, :force => true do |t|
    t.integer "guidance_id",       :null => false
    t.integer "guidance_group_id", :null => false
  end

  add_index "guidance_in_group", ["guidance_id", "guidance_group_id"], :name => "index_guidance_in_group_on_guidance_id_and_guidance_group_id"

  create_table "guidance_translations", :force => true do |t|
    t.integer  "guidance_id"
    t.string   "locale",      :null => false
    t.datetime "created_at",  :null => false
    t.datetime "updated_at",  :null => false
    t.text     "text"
  end

  add_index "guidance_translations", ["guidance_id"], :name => "index_guidance_translations_on_guidance_id"
  add_index "guidance_translations", ["locale"], :name => "index_guidance_translations_on_locale"

  create_table "guidances", :force => true do |t|
    t.text     "text"
    t.integer  "guidance_group_id"
    t.datetime "created_at",        :null => false
    t.datetime "updated_at",        :null => false
    t.integer  "question_id"
  end

  create_table "option_warnings", :force => true do |t|
    t.integer  "organisation_id"
    t.integer  "option_id"
    t.text     "text"
    t.datetime "created_at",      :null => false
    t.datetime "updated_at",      :null => false
  end

  create_table "options", :force => true do |t|
    t.integer  "question_id"
    t.string   "text"
    t.integer  "number"
    t.boolean  "is_default"
    t.datetime "created_at",  :null => false
    t.datetime "updated_at",  :null => false
  end

  create_table "org_stylesheets", :force => true do |t|
    t.integer  "org_id"
    t.binary   "stylesheet"
    t.integer  "last_change_user_id"
    t.datetime "created_at",          :null => false
    t.datetime "updated_at",          :null => false
  end

  create_table "organisation_types", :force => true do |t|
    t.string   "name"
    t.text     "description"
    t.datetime "created_at",  :null => false
    t.datetime "updated_at",  :null => false
  end

  create_table "organisations", :force => true do |t|
    t.string   "name"
    t.string   "abbreviation"
    t.text     "description"
    t.string   "target_url"
    t.integer  "organisation_type_id"
    t.string   "domain"
    t.integer  "wayfless_entity"
    t.integer  "stylesheet_file_id"
    t.datetime "created_at",              :null => false
    t.datetime "updated_at",              :null => false
    t.integer  "parent_id"
    t.boolean  "is_other"
    t.string   "sort_name"
    t.text     "banner_text"
    t.boolean  "display_in_registration"
    t.string   "logo_uid"
    t.string   "logo_name"
    t.string   "banner_uid"
    t.string   "banner_name"
  end

  create_table "phase_translations", :force => true do |t|<commit_msg>updated schema.rb<commit_after># encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20160406175524) do

  create_table "answers", :force => true do |t|
    t.text     "text"
    t.integer  "plan_id"
    t.integer  "user_id"
    t.integer  "question_id"
    t.datetime "created_at",  :null => false
    t.datetime "updated_at",  :null => false
  end

  create_table "answers_options", :id => false, :force => true do |t|
    t.integer "answer_id", :null => false
    t.integer "option_id", :null => false
  end

  add_index "answers_options", ["answer_id", "option_id"], :name => "index_answers_options_on_answer_id_and_option_id"

  create_table "comments", :force => true do |t|
    t.integer  "user_id"
    t.integer  "question_id"
    t.text     "text"
    t.datetime "created_at",  :null => false
    t.datetime "updated_at",  :null => false
    t.boolean  "archived"
    t.integer  "plan_id"
    t.integer  "archived_by"
  end

  create_table "dmptemplate_translations", :force => true do |t|
    t.integer  "dmptemplate_id"
    t.string   "locale",         :null => false
    t.datetime "created_at",     :null => false
    t.datetime "updated_at",     :null => false
    t.string   "title"
    t.text     "description"
  end

  add_index "dmptemplate_translations", ["dmptemplate_id"], :name => "index_dmptemplate_translations_on_dmptemplate_id"
  add_index "dmptemplate_translations", ["locale"], :name => "index_dmptemplate_translations_on_locale"

  create_table "dmptemplates", :force => true do |t|
    t.string   "title"
    t.text     "description"
    t.boolean  "published"
    t.integer  "user_id"
    t.integer  "organisation_id"
    t.datetime "created_at",      :null => false
    t.datetime "updated_at",      :null => false
    t.string   "locale"
    t.boolean  "is_default"
  end

  create_table "dmptemplates_guidance_groups", :id => false, :force => true do |t|
    t.integer "dmptemplate_id"
    t.integer "guidance_group_id"
  end

  create_table "exported_plans", :force => true do |t|
    t.integer  "plan_id"
    t.integer  "user_id"
    t.string   "format"
    t.datetime "created_at", :null => false
    t.datetime "updated_at", :null => false
  end

  create_table "file_types", :force => true do |t|
    t.string   "name"
    t.string   "icon_name"
    t.integer  "icon_size"
    t.string   "icon_location"
    t.datetime "created_at",    :null => false
    t.datetime "updated_at",    :null => false
  end

  create_table "file_uploads", :force => true do |t|
    t.string   "name"
    t.string   "title"
    t.text     "description"
    t.integer  "size"
    t.boolean  "published"
    t.string   "location"
    t.integer  "file_type_id"
    t.datetime "created_at",   :null => false
    t.datetime "updated_at",   :null => false
  end

  create_table "friendly_id_slugs", :force => true do |t|
    t.string   "slug",                         :null => false
    t.integer  "sluggable_id",                 :null => false
    t.string   "sluggable_type", :limit => 40
    t.datetime "created_at"
  end

  add_index "friendly_id_slugs", ["slug", "sluggable_type"], :name => "index_friendly_id_slugs_on_slug_and_sluggable_type", :unique => true
  add_index "friendly_id_slugs", ["sluggable_id"], :name => "index_friendly_id_slugs_on_sluggable_id"
  add_index "friendly_id_slugs", ["sluggable_type"], :name => "index_friendly_id_slugs_on_sluggable_type"

  create_table "guidance_groups", :force => true do |t|
    t.string   "name"
    t.integer  "organisation_id"
    t.datetime "created_at",      :null => false
    t.datetime "updated_at",      :null => false
    t.boolean  "optional_subset"
    t.boolean  "published"
  end

  create_table "guidance_in_group", :id => false, :force => true do |t|
    t.integer "guidance_id",       :null => false
    t.integer "guidance_group_id", :null => false
  end

  add_index "guidance_in_group", ["guidance_id", "guidance_group_id"], :name => "index_guidance_in_group_on_guidance_id_and_guidance_group_id"

  create_table "guidance_translations", :force => true do |t|
    t.integer  "guidance_id"
    t.string   "locale",      :null => false
    t.datetime "created_at",  :null => false
    t.datetime "updated_at",  :null => false
    t.text     "text"
  end

  add_index "guidance_translations", ["guidance_id"], :name => "index_guidance_translations_on_guidance_id"
  add_index "guidance_translations", ["locale"], :name => "index_guidance_translations_on_locale"

  create_table "guidances", :force => true do |t|
    t.text     "text"
    t.integer  "guidance_group_id"
    t.datetime "created_at",        :null => false
    t.datetime "updated_at",        :null => false
    t.integer  "question_id"
  end

  create_table "option_warnings", :force => true do |t|
    t.integer  "organisation_id"
    t.integer  "option_id"
    t.text     "text"
    t.datetime "created_at",      :null => false
    t.datetime "updated_at",      :null => false
  end

  create_table "options", :force => true do |t|
    t.integer  "question_id"
    t.string   "text"
    t.integer  "number"
    t.boolean  "is_default"
    t.datetime "created_at",  :null => false
    t.datetime "updated_at",  :null => false
  end

  create_table "organisation_types", :force => true do |t|
    t.string   "name"
    t.text     "description"
    t.datetime "created_at",  :null => false
    t.datetime "updated_at",  :null => false
  end

  create_table "organisations", :force => true do |t|
    t.string   "name"
    t.string   "abbreviation"
    t.text     "description"
    t.string   "target_url"
    t.integer  "organisation_type_id"
    t.string   "domain"
    t.integer  "wayfless_entity"
    t.integer  "stylesheet_file_id"
    t.datetime "created_at",              :null => false
    t.datetime "updated_at",              :null => false
    t.integer  "parent_id"
    t.boolean  "is_other"
    t.string   "sort_name"
    t.text     "banner_text"
    t.string   "logo_file_name"
    t.boolean  "display_in_registration"
    t.string   "logo_uid"
    t.string   "logo_name"
    t.string   "banner_uid"
    t.string   "banner_name"
  end

  create_table "phase_translations", :force => true do |t|
{'fraction_non_alphanumeric': 0.11898969662278192, 'fraction_numerical': 0.002432741843159702, 'mean_word_length': 3.1647794994040526, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 146, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '47907', 'n_tokens_mistral': 4824, 'n_tokens_neox': 4752, 'n_words': 1207}