Module: QC::Later::Setup
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
14 15 16 17 18 |
# File 'lib/queue_classic/later.rb', line 14 def create QC::Conn.transaction do QC::Conn.execute("CREATE TABLE #{QC::Later::TABLE_NAME} (q_name varchar(255), method varchar(255), args text, not_before timestamptz)") end end |
#drop ⇒ Object
20 21 22 23 24 |
# File 'lib/queue_classic/later.rb', line 20 def drop QC::Conn.transaction do QC::Conn.execute("DROP TABLE IF EXISTS #{QC::Later::TABLE_NAME}") end end |