Looking for changes on website content https://projet-alice-demo.herokuapp.com/diffs/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.1KB

  1. # This file is auto-generated from the current state of the database. Instead
  2. # of editing this file, please use the migrations feature of Active Record to
  3. # incrementally modify your database, and then regenerate this schema definition.
  4. #
  5. # Note that this schema.rb definition is the authoritative source for your
  6. # database schema. If you need to create the application database on another
  7. # system, you should be using db:schema:load, not running all the migrations
  8. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  9. # you'll amass, the slower it'll run and the greater likelihood for issues).
  10. #
  11. # It's strongly recommended that you check this file into your version control system.
  12. ActiveRecord::Schema.define(version: 20180510000003) do
  13. create_table "groups", force: :cascade do |t|
  14. t.string "name", null: false
  15. t.string "targets"
  16. t.integer "template_id"
  17. t.index ["name"], name: "index_groups_on_name", unique: true
  18. t.index ["template_id"], name: "index_groups_on_template_id"
  19. t.index [nil], name: "index_groups_on_template"
  20. end
  21. create_table "sites", force: :cascade do |t|
  22. t.string "url", null: false
  23. t.string "name"
  24. t.string "targets"
  25. t.binary "reference"
  26. t.binary "content"
  27. t.integer "group_id"
  28. t.integer "template_id"
  29. t.string "last_error"
  30. t.datetime "checked_at"
  31. t.datetime "changed_at"
  32. t.index ["group_id"], name: "index_sites_on_group_id"
  33. t.index ["name"], name: "index_sites_on_name"
  34. t.index ["template_id"], name: "index_sites_on_template_id"
  35. end
  36. create_table "targets", force: :cascade do |t|
  37. t.integer "template_id"
  38. t.integer "group_id"
  39. t.integer "site_id"
  40. t.datetime "created_at", null: false
  41. t.datetime "updated_at", null: false
  42. t.index ["group_id"], name: "index_targets_on_group_id"
  43. t.index ["site_id"], name: "index_targets_on_site_id"
  44. t.index ["template_id"], name: "index_targets_on_template_id"
  45. end
  46. create_table "templates", force: :cascade do |t|
  47. t.string "name"
  48. t.index ["name"], name: "index_templates_on_name", unique: true
  49. end
  50. end