Sprankelprachtig aan/afmeldsysteem

20181104220610_generate_group_api_tokens.rb 213B

12345678910
  1. # Generate an API token for each group after adding the column.
  2. class GenerateGroupApiTokens < ActiveRecord::Migration[5.0]
  3. def up
  4. Group.all.each(&:regenerate_api_token)
  5. end
  6. # No-op
  7. def down; end
  8. end