Sha256: 187eca862f9db0314b7ed655e6397f1c943165683314a0d1995f895394b7404e

Contents?: true

Size: 1.55 KB

Versions: 9

Compression:

Stored size: 1.55 KB

Contents

# 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: 2017_05_07_175133) do

  create_table "categories", force: :cascade do |t|
    t.string "name", null: false
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    t.index ["name"], name: "index_categories_on_name", unique: true
  end

  create_table "posts", force: :cascade do |t|
    t.integer "category_id"
    t.string "title", null: false
    t.string "body", null: false
    t.integer "views_count", default: 0, null: false
    t.integer "likes_count", default: 0, null: false
    t.integer "comments_count", default: 0, null: false
    t.datetime "published_at"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    t.index ["category_id"], name: "index_posts_on_category_id"
    t.index ["title"], name: "index_posts_on_title", unique: true
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
search_object_graphql-1.0.4 example/db/schema.rb
search_object_graphql-1.0.3 example/db/schema.rb
search_object_graphql-1.0.2 example/db/schema.rb
search_object_graphql-1.0.1 example/db/schema.rb
search_object_graphql-1.0.0 example/db/schema.rb
search_object_graphql-0.3.2 example/db/schema.rb
search_object_graphql-0.3.1 example/db/schema.rb
search_object_graphql-0.3 example/db/schema.rb
search_object_graphql-0.2 example/db/schema.rb