Sha256: 72fce1986a1a027072d741d3a6d6db9ca5648192e9c66044f45987b28f1929a9

Contents?: true

Size: 283 Bytes

Versions: 10

Compression:

Stored size: 283 Bytes

Contents

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

      t.timestamps null: false
    end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jpmobile-4.2.5 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-4.2.4 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-5.0.0 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-5.0.0.beta3 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-5.0.0.beta2 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-4.2.3 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-4.2.2 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-4.2.1 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-5.0.0.beta1 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-4.2.0 test/rails/overrides/db/migrate/001_add_sessions_table.rb