Class: CreateTableForSaf

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/ap4r/xxx_create_table_for_saf.rb,
lib/ap4r/xxx_create_table_for_saf_to_postgresql.rb

Overview

Author

Kiwamu Kato

Copyright

Copyright © 2006 Future System Consulting Corp.

Licence

MIT Licence

Class Method Summary collapse

Class Method Details

.downObject



18
19
20
# File 'lib/ap4r/xxx_create_table_for_saf.rb', line 18

def self.down
  drop_table :stored_messages
end

.upObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/ap4r/xxx_create_table_for_saf.rb', line 6

def self.up
  create_table :stored_messages do |t|
    t.column :duplication_check_id, :string, :null => false
    t.column :queue, :string, :null => false
    t.column :headers, :binary, :null => false
    t.column :object, :binary, :null => false
    t.column :status, :integer, :null => false
    t.column :created_at, :datetime, :null => false
    t.column :updated_at, :datetime, :null => false
  end
end