Sha256: 3070138bcc6b085ead1bae1693b0f61106af8a5c1954d2c1a804f6077ee72530

Contents?: true

Size: 270 Bytes

Versions: 37

Compression:

Stored size: 270 Bytes

Contents

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

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
lentil-1.0.5 db/migrate/20121028164239_add_sessions_table.rb
lentil-1.0.4 db/migrate/20121028164239_add_sessions_table.rb
lentil-1.0.3 db/migrate/20121028164239_add_sessions_table.rb
lentil-1.0.2 db/migrate/20121028164239_add_sessions_table.rb
lentil-1.0.1 db/migrate/20121028164239_add_sessions_table.rb
lentil-1.0.0 db/migrate/20121028164239_add_sessions_table.rb
lentil-0.9.1 db/migrate/20121028164239_add_sessions_table.rb
lentil-0.9.0 db/migrate/20121028164239_add_sessions_table.rb
lentil-0.8.0 db/migrate/20121028164239_add_sessions_table.rb
lentil-0.7.1 db/migrate/20121028164239_add_sessions_table.rb
lentil-0.6.0 db/migrate/20121028164239_add_sessions_table.rb
lentil-0.5.2 db/migrate/20121028164239_add_sessions_table.rb
lentil-0.5.1 db/migrate/20121028164239_add_sessions_table.rb
lentil-0.5.0 db/migrate/20121028164239_add_sessions_table.rb
goldencobra-1.4.27 db/migrate/20130404110743_add_sessions_table.rb
lentil-0.4.2 db/migrate/20121028164239_add_sessions_table.rb
lentil-0.4.0 db/migrate/20121028164239_add_sessions_table.rb
lentil-0.3.1 db/migrate/20121028164239_add_sessions_table.rb
lentil-0.3.0 db/migrate/20121028164239_add_sessions_table.rb
lentil-0.2.3 db/migrate/20121028164239_add_sessions_table.rb