Guest User

Untitled

a guest
Feb 18th, 2014
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.36 KB | None | 0 0
  1.  
  2.   DB = Sequel.connect('sqlite:///Users/Ryan/workspace/testing/clubland-2/clublandlv.sqlite')
  3.   genre_sub = DB[:genres]  #The database has two tables named genres and subgenres.
  4.   genre_db = DB[:subgenres]
  5.  
  6.     g_sub = genre_sub.select(:genre_id)
  7.     #Trying to collect all of the data from the genre_id column of the genres table.
  8.  
  9.     puts g_sub
  10.       binding.pry
Advertisement
Add Comment
Please, Sign In to add comment