Class: ReliableMsgQueueAndTopic
- Defined in:
- lib/ap4r/db/migrate/001_reliable_msg_queue_and_topic.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
18 19 20 21 |
# File 'lib/ap4r/db/migrate/001_reliable_msg_queue_and_topic.rb', line 18 def self.down drop_table :reliable_msg_queues drop_table :reliable_msg_topics end |
.up ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/ap4r/db/migrate/001_reliable_msg_queue_and_topic.rb', line 3 def self.up create_table :reliable_msg_queues do |t| t.column "message_id", :string t.column "queue", :string t.column "headers", :binary t.column "object", :binary end create_table :reliable_msg_topics do |t| t.column "topic", :string t.column "headers", :binary t.column "object", :binary end end |