missing migration

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@22 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2007-11-15 05:32:29 +00:00
parent a527f40417
commit 92dee7b971
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
class AddSessions < ActiveRecord::Migration
def self.up
create_table :sessions do |t|
t.column :session_id, :string
t.column :data, :text
t.column :updated_at, :datetime
end
add_index :sessions, :session_id
add_index :sessions, :updated_at
end
def self.down
drop_table :sessions
end
end