110 lines
4.8 KiB
Ruby
110 lines
4.8 KiB
Ruby
# 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 that you check this file into your version control system.
|
|
|
|
ActiveRecord::Schema.define(version: 20191202132743) do
|
|
|
|
create_table "admins", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci" do |t|
|
|
t.string "email", default: "", null: false
|
|
t.string "description", limit: 80
|
|
t.string "encrypted_password", default: "", null: false
|
|
t.string "reset_password_token"
|
|
t.datetime "reset_password_sent_at"
|
|
t.datetime "remember_created_at"
|
|
t.integer "sign_in_count", default: 0, null: false
|
|
t.datetime "current_sign_in_at"
|
|
t.datetime "last_sign_in_at"
|
|
t.string "current_sign_in_ip"
|
|
t.string "last_sign_in_ip"
|
|
t.integer "failed_attempts", default: 0, null: false
|
|
t.string "unlock_token"
|
|
t.datetime "locked_at"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.index ["email"], name: "index_admins_on_email", unique: true
|
|
t.index ["reset_password_token"], name: "index_admins_on_reset_password_token", unique: true
|
|
t.index ["unlock_token"], name: "index_admins_on_unlock_token", unique: true
|
|
end
|
|
|
|
create_table "all_pages", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci" do |t|
|
|
t.string "name", limit: 40, null: false
|
|
t.string "title", null: false
|
|
t.string "slug", null: false
|
|
t.string "meta_description"
|
|
t.boolean "nofollow", default: false
|
|
t.integer "type_of", null: false
|
|
t.integer "article_id"
|
|
t.text "small_text"
|
|
t.text "full_text", limit: 16777215
|
|
t.timestamp "updated_at"
|
|
t.integer "updated_by"
|
|
t.boolean "published", default: false, null: false
|
|
end
|
|
|
|
create_table "articles", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci" do |t|
|
|
t.string "name", null: false
|
|
t.timestamp "updated_at"
|
|
t.integer "updated_by"
|
|
end
|
|
|
|
create_table "friendly_id_slugs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci" do |t|
|
|
t.string "slug", null: false
|
|
t.integer "sluggable_id", null: false
|
|
t.string "sluggable_type", limit: 50
|
|
t.string "scope"
|
|
t.datetime "created_at"
|
|
t.index ["slug", "sluggable_type", "scope"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope", unique: true
|
|
t.index ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type"
|
|
t.index ["sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_id"
|
|
t.index ["sluggable_type"], name: "index_friendly_id_slugs_on_sluggable_type"
|
|
end
|
|
|
|
create_table "new_emails", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci" do |t|
|
|
t.string "email"
|
|
t.boolean "active"
|
|
t.datetime "accepted"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.index ["active"], name: "index_new_emails_on_active"
|
|
t.index ["email"], name: "index_new_emails_on_email"
|
|
end
|
|
|
|
create_table "published_pages", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci" do |t|
|
|
t.string "name", limit: 40, null: false
|
|
t.string "title", null: false
|
|
t.string "slug", null: false
|
|
t.string "meta_description"
|
|
t.integer "all_page_id", null: false
|
|
t.boolean "nofollow", default: false, null: false
|
|
t.integer "number_of_views", default: 0, null: false
|
|
t.integer "type_of", null: false
|
|
t.integer "article_id"
|
|
t.integer "priority", default: 0, null: false
|
|
t.text "small_text"
|
|
t.text "full_text", limit: 16777215
|
|
t.timestamp "created_at"
|
|
t.integer "created_by"
|
|
t.timestamp "updated_at"
|
|
t.integer "updated_by"
|
|
t.index ["all_page_id"], name: "all_page_id"
|
|
t.index ["created_at"], name: "created_at"
|
|
t.index ["number_of_views"], name: "number_of_views"
|
|
t.index ["slug"], name: "slug"
|
|
t.index ["type_of"], name: "type_of"
|
|
end
|
|
|
|
create_table "sc_settings", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci" do |t|
|
|
t.integer "index_number_of_views", default: 0, null: false
|
|
t.integer "contact_number_of_views", default: 0, null: false
|
|
end
|
|
|
|
end
|