18F/confidential-survey

View on GitHub
db/migrate/20160225220247_create_tokens_table.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateTokensTable < ActiveRecord::Migration
  def change
    create_table :survey_tokens do |t|
      t.string :survey_id
      t.string :token
    end

    add_index :survey_tokens, :token, unique: true
  end
end