Patch #229 ยป 066_add_sessions.rb
1 |
class AddSessions < ActiveRecord::Migration |
---|---|
2 |
def self.up |
3 |
create_table :sessions do |t| |
4 |
t.column :session_id, :string |
5 |
t.column :data, :text |
6 |
t.column :updated_at, :datetime |
7 |
end
|
8 |
|
9 |
add_index :sessions, :session_id |
10 |
add_index :sessions, :updated_at |
11 |
end
|
12 |
|
13 |
def self.down |
14 |
drop_table :sessions |
15 |
end
|
16 |
end
|