Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20130906175737_add_sessions_table.rb « migrate « ci « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4c879564a587eae2b534a39989a03ef2d4a9ab6c (plain)
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