Sha256: d7fd1922ecbfcdf293405997cf937c24e546bae5efb96f590c21e54858e60888

Contents?: true

Size: 1.67 KB

Versions: 9

Compression:

Stored size: 1.67 KB

Contents

# 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 that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20161104055303) do

  create_table "shortened_urls", force: true do |t|
    t.integer  "owner_id"
    t.string   "owner_type", limit: 20
    t.text     "url",                               null: false
    t.string   "unique_key", limit: 10,             null: false
    t.integer  "use_count",             default: 0, null: false
    t.datetime "expires_at"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string   "category"
  end

  add_index "shortened_urls", ["category"], name: "index_shortened_urls_on_category"
  add_index "shortened_urls", ["owner_id", "owner_type"], name: "index_shortened_urls_on_owner_id_and_owner_type"
  add_index "shortened_urls", ["unique_key"], name: "index_shortened_urls_on_unique_key", unique: true
  add_index "shortened_urls", ["url"], name: "index_shortened_urls_on_url"

  create_table "users", force: true do |t|
    t.datetime "created_at"
    t.datetime "updated_at"
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shortener-1.0.1 spec/dummy/db/schema.rb
shortener-1.0.0 spec/dummy/db/schema.rb
shortener-0.8.2 spec/dummy/db/schema.rb
shortener-0.8.1 spec/dummy/db/schema.rb
shortener-0.8.0 spec/dummy/db/schema.rb
shortener-0.7.2 spec/dummy/db/schema.rb
shortener-0.7.1 spec/dummy/db/schema.rb
shortener-0.6.2 spec/dummy/db/schema.rb
shortener-0.6.1 spec/dummy/db/schema.rb