ca220a5f2336f5d244df25db02785acd5612e963
[feedcatcher.git] /
1 class <%= class_name %> < ActiveRecord::Migration
2 def self.up
3 create_table :<%= session_table_name %> do |t|
4 t.string :session_id, :null => false
5 t.text :data
6 t.timestamps
7 end
8
9 add_index :<%= session_table_name %>, :session_id
10 add_index :<%= session_table_name %>, :updated_at
11 end
12
13 def self.down
14 drop_table :<%= session_table_name %>
15 end
16 end