2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-22 01:47:48 +00:00
moebooru/db/migrate/20130326161630_add_index_to_api_key.rb
2024-01-08 19:39:01 +09:00

6 lines
122 B
Ruby

class AddIndexToApiKey < ActiveRecord::Migration[5.1]
def change
add_index :users, :api_key, unique: true
end
end