mastodon/db/migrate/20170623152212_create_session_activations.rb

16 lines
377 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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