Skip to content

Instantly share code, notes, and snippets.

@guivinicius
Created June 12, 2015 23:38
Show Gist options
  • Select an option

  • Save guivinicius/6846efeb4570d4e5ee0e to your computer and use it in GitHub Desktop.

Select an option

Save guivinicius/6846efeb4570d4e5ee0e to your computer and use it in GitHub Desktop.

Revisions

  1. guivinicius created this gist Jun 12, 2015.
    50 changes: 50 additions & 0 deletions schema.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@
    # 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: 20150612232948) do

    create_table "schedule_objects", force: :cascade do |t|
    t.integer "schedulable_id"
    t.string "schedulable_type"
    t.integer "schedule_id"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    end

    add_index "schedule_objects", ["schedulable_id", "schedulable_type"], name: "index_schedule_objects_on_schedulable_id_and_schedulable_type"
    add_index "schedule_objects", ["schedule_id"], name: "index_schedule_objects_on_schedule_id"

    create_table "schedules", force: :cascade do |t|
    t.string "name"
    t.date "start"
    t.date "end"
    t.integer "type", null: false
    t.string "recurrence"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    end

    add_index "schedules", ["type"], name: "index_schedules_on_type"

    create_table "trading_hours", force: :cascade do |t|
    t.time "open"
    t.time "close"
    t.string "week_day"
    t.integer "schedule_id", null: false
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    end

    add_index "trading_hours", ["schedule_id"], name: "index_trading_hours_on_schedule_id"

    end