Skip to content

Instantly share code, notes, and snippets.

@guivinicius
Created June 12, 2015 23:38
Show Gist options
  • Save guivinicius/6846efeb4570d4e5ee0e to your computer and use it in GitHub Desktop.
Save guivinicius/6846efeb4570d4e5ee0e to your computer and use it in GitHub Desktop.
trading hours event
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment