gorums/WatchIoT

View on GitHub
db/migrate/20151014044312_create_api_keys.rb

Summary

Maintainability
A
0 mins
Test Coverage
##
# Apikey model
#
class CreateApiKeys < ActiveRecord::Migration
  def change
    create_table :api_keys do |t|
      t.string :api_key

      t.timestamps null: false
    end

    add_index :api_keys, :api_key, unique: true
  end
end