Guest User

Untitled

a guest
Oct 23rd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. create_table "programs" do |t|
  2. t.integer "id"
  3. t.integer "paradigm_id"
  4. t.integer "paradigm_title_id"
  5. t.string "paradigm_series_name"
  6. t.string "paradigm_episode_name"
  7. t.integer "paradigm_episode_number"
  8. t.text "paradigm_abstract"
  9. t.text "paradigm_body"
  10. t.string "storer_id", :limit => 24
  11. end
  12.  
  13. create_table "date_spans", :force => true do |t|
  14. t.integer "id"
  15. t.integer "date_spannable_id"
  16. t.string "date_spannable_type"
  17. t.datetime "span_from"
  18. t.datetime "span_to"
  19. t.datetime "created_at"
  20. t.datetime "updated_at"
  21. end
  22.  
  23. # date_spannable_id links back to the programs table. Date Spans are airings. For example, if you want to get everything that is showing from now forward, SELECT * FROM date_spans WHERE span_from > NOW(); Do a JOIN on programs to load the program with the timeslot.
Add Comment
Please, Sign In to add comment