aboutsummaryrefslogblamecommitdiffstats
path: root/db/migrate/20130125203718_add_sessions_table.rb
blob: 4c879564a587eae2b534a39989a03ef2d4a9ab6c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                
class AddSessionsTable < ActiveRecord::Migration
  def change
    create_table :sessions do |t|
      t.string :session_id, :null => false
      t.text :data
      t.timestamps
    end

    add_index :sessions, :session_id
    add_index :sessions, :updated_at
  end
end