From 92dee7b9711d49ea1efd876541f488549e0d8ea5 Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 15 Nov 2007 05:32:29 +0000 Subject: [PATCH] missing migration git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@22 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7 --- db/migrate/001_add_sessions.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 db/migrate/001_add_sessions.rb diff --git a/db/migrate/001_add_sessions.rb b/db/migrate/001_add_sessions.rb new file mode 100644 index 0000000..22b4a00 --- /dev/null +++ b/db/migrate/001_add_sessions.rb @@ -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