Sha256: 3983cabde1259bb2ec8302ed1a059187f2d4128f2afa3f4d091df8b43d608aea

Contents?: true

Size: 285 Bytes

Versions: 22

Compression:

Stored size: 285 Bytes

Contents

class AddSessionsTable < ActiveRecord::Migration[5.0]
  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

22 entries across 22 versions & 1 rubygems

Version Path
jpmobile-8.0.0 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-7.2.0 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-7.1.0 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-7.0.4 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-7.0.3 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-7.0.2 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-7.0.1 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-7.0.0 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-6.1.2 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-6.1.1 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-6.1.0 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-6.0.0 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-5.2.5 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-6.0.0.beta test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-5.2.4 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-5.0.1 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-5.1.1 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-5.2.3 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-5.2.2 test/rails/overrides/db/migrate/001_add_sessions_table.rb
jpmobile-5.2.1 test/rails/overrides/db/migrate/001_add_sessions_table.rb