Sha256: 89873b24dd9c9ed5ec86e2994827acb10eb0de6ecb733b07473a495a38ac44ff

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 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
    end

    add_index :sessions, :session_id, :unique => true
    add_index :sessions, :updated_at
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vaultify-0.1.1 db/migrate/20181127173405_add_sessions_table.rb
vaultify-0.1.0 db/migrate/20181127173405_add_sessions_table.rb