missing migration
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@22 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
a527f40417
commit
92dee7b971
|
@ -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
|
Reference in New Issue