Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: d54406271b
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.409 kB
class <%= class_name %> < ActiveRecord::Migration
def self.up
create_table :<%= session_table_name %> do |t|
t.column :session_id, :string
t.column :data, :text
t.column :updated_at, :datetime
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
Jump to Line
Something went wrong with that request. Please try again.