beast rev 2066
[beast-modified.git] / db / migrate / 010_add_sessions.rb
blob7456d477be0d55575f02d623b67852c1bf6208d0
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   end
12   def self.down
13     drop_table :sessions
14   end
15 end