<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 => 20111110161012) do

  create_table "artefacts", :force => true do |t|
    t.string   "section"
    t.string   "name",                          :null => false
    t.string   "slug",                          :null => false
    t.string   "kind",                          :null => false
    t.string   "owning_app",                    :null => false
    t.boolean  "active",     :default => false, :null => false
    t.string   "tags"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "need_id"
    t.string   "department"
  end

  add_index "artefacts", ["need_id"], :name => "index_artefacts_on_need_id"

  create_table "artefacts_audiences", :id => false, :force => true do |t|
    t.integer "artefact_id", :null => false
    t.integer "audience_id", :null => false
  end

  add_index "artefacts_audiences", ["artefact_id"], :name => "index_artefacts_audiences_on_artefact_id"
  add_index "artefacts_audiences", ["audience_id"], :name => "index_artefacts_audiences_on_audience_id"

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

  create_table "contacts", :force => true do |t|
    t.string  "name",            :null => false
    t.integer "contactotron_id", :null => false
  end

  create_table "identifiers", :force => true do |t|
    t.boolean  "active",                   :default => false, :null => false
    t.string   "slug",       :limit => 63,                    :null => false
    t.string   "owning_app", :limit => 50,                    :null => false
    t.string   "kind",       :limit => 50,                    :null => false
    t.datetime "created_at"
  end

  add_index "identifiers", ["slug"], :name => "unique_identifiers_slug", :unique => true

  create_table "related_contacts", :force => true do |t|
    t.integer "artefact_id", :null => false
    t.integer "contact_id",  :null => false
    t.integer "sort_key",    :null => false
  end

  add_index "related_contacts", ["artefact_id"], :name => "index_related_contacts_on_artefact_id"
  add_index "related_contacts", ["contact_id"], :name => "index_related_contacts_on_contact_id"
  add_index "related_contacts", ["sort_key"], :name => "index_related_contacts_on_sort_key"

  create_table "related_items", :force => true do |t|
    t.integer "source_artefact_id", :null => false<commit_msg>removing identifiers table from schema<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 => 20111110161012) do

  create_table "artefacts", :force => true do |t|
    t.string   "section"
    t.string   "name",                          :null => false
    t.string   "slug",                          :null => false
    t.string   "kind",                          :null => false
    t.string   "owning_app",                    :null => false
    t.boolean  "active",     :default => false, :null => false
    t.string   "tags"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "need_id"
    t.string   "department"
  end

  add_index "artefacts", ["need_id"], :name => "index_artefacts_on_need_id"

  create_table "artefacts_audiences", :id => false, :force => true do |t|
    t.integer "artefact_id", :null => false
    t.integer "audience_id", :null => false
  end

  add_index "artefacts_audiences", ["artefact_id"], :name => "index_artefacts_audiences_on_artefact_id"
  add_index "artefacts_audiences", ["audience_id"], :name => "index_artefacts_audiences_on_audience_id"

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

  create_table "contacts", :force => true do |t|
    t.string  "name",            :null => false
    t.integer "contactotron_id", :null => false
  end

  add_index "identifiers", ["slug"], :name => "unique_identifiers_slug", :unique => true

  create_table "related_contacts", :force => true do |t|
    t.integer "artefact_id", :null => false
    t.integer "contact_id",  :null => false
    t.integer "sort_key",    :null => false
  end

  add_index "related_contacts", ["artefact_id"], :name => "index_related_contacts_on_artefact_id"
  add_index "related_contacts", ["contact_id"], :name => "index_related_contacts_on_contact_id"
  add_index "related_contacts", ["sort_key"], :name => "index_related_contacts_on_sort_key"

  create_table "related_items", :force => true do |t|
    t.integer "source_artefact_id", :null => false
{'fraction_non_alphanumeric': 0.11512829056981007, 'fraction_numerical': 0.005998000666444518, 'mean_word_length': 3.303225806451613, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 74, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1008370', 'n_tokens_mistral': 1887, 'n_tokens_neox': 1843, 'n_words': 568}