This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2023-07-12 09:47:08 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-23 18:50:53 +02:00
|
|
|
class CreateSessionActivations < ActiveRecord::Migration[5.1]
|
|
|
|
def change
|
|
|
|
create_table :session_activations do |t|
|
|
|
|
t.integer :user_id, null: false
|
|
|
|
t.string :session_id, null: false
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index :session_activations, :user_id
|
|
|
|
add_index :session_activations, :session_id, unique: true
|
|
|
|
end
|
|
|
|
end
|