Sha256: 20df8b5206655b4dfa6c61fb36a250ed7ccbea684f2080b838fedef12f69ab23

Contents?: true

Size: 318 Bytes

Versions: 30

Compression:

Stored size: 318 Bytes

Contents

class AddSessionTable < ActiveRecord::Migration
  def self.up
    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

  def self.down
    drop_table :sessions
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
zena-1.2.8 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.2.7 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.2.6 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.2.5 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.2.4 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.2.3 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.2.2 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.2.1 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.2.0 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.1.3 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.1.2 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.1.1 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.1.0 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.0.0 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.0.0.rc3 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.0.0.rc2 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-1.0.0.rc1 db/fix/old_migrations/20091101184952_add_session_table.rb
zena-0.16.9 db/migrate/20091101184952_add_session_table.rb
zena-1.0.0.beta3 db/migrate/20091101184952_add_session_table.rb
zena-0.16.8 db/migrate/20091101184952_add_session_table.rb