Files
danbooru/db/migrate/20170106012138_create_token_buckets.rb
2019-12-22 21:23:37 -06:00

11 lines
310 B
Ruby

class CreateTokenBuckets < ActiveRecord::Migration[4.2]
def up
execute "create unlogged table token_buckets (user_id integer, last_touched_at timestamp not null, token_count real not null)"
add_index :token_buckets, :user_id, :unique => true
end
def down
raise NotImplementedError
end
end