blob: 919822af7b456286350b2fd70cddd3c18f7fa466 (
plain) (
tree)
|
|
class <%= migration_class_name %> < ActiveRecord::Migration
def self.up
create_table :<%= session_table_name %> do |t|
t.string :session_id, :null => false
t.text :data
t.timestamps
end
add_index :<%= session_table_name %>, :session_id
add_index :<%= session_table_name %>, :updated_at
end
def self.down
drop_table :<%= session_table_name %>
end
end
|