Sha256: fcb13036980f6e64a7402acc44ed299e5ebd9bb0d98b95bd834f19eddecf2352

Contents?: true

Size: 309 Bytes

Versions: 34

Compression:

Stored size: 309 Bytes

Contents

class AddSessionsTable < ActiveRecord::Migration
  def 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 down
    drop_table :sessions
  end
end

Version data entries

34 entries across 34 versions & 3 rubygems

Version Path
milia-0.3.38 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
milia-0.3.34 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
milia-0.3.33 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
milia-0.3.32 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
milia-0.3.31 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
authlogic_cloudfuji-0.9.4 spec/scenario/db/migrate/20120226154646_add_sessions_table.rb
authlogic_cloudfuji-0.9.3 spec/scenario/db/migrate/20120226154646_add_sessions_table.rb
authlogic_bushido-0.9.2 spec/scenario/db/migrate/20120226154646_add_sessions_table.rb
authlogic_bushido-0.9.1 spec/scenario/db/migrate/20120226154646_add_sessions_table.rb
authlogic_bushido-0.9 spec/scenario/db/migrate/20120226154646_add_sessions_table.rb
milia-0.3.30 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
milia-0.3.29 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
milia-0.3.28 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
milia-0.3.27 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
milia-0.3.26 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
milia-0.3.25 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
milia-0.3.24 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
milia-0.3.23 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
milia-0.3.22 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb
milia-0.3.21 test/rails_app/db/migrate/20111012060818_add_sessions_table.rb