* Add new table and model * Store banned user username hash on delete * Prevent previously banned user from signing up again * Update method name * Refactor code and add more specs * Test improvements * Don't override existing global flash * Fix typo * Update spec description * Update schema.rb * More schema.rb fixes * Simplify spec * Update migration * Clean up migration * Rename method * Add DataDog counter * Revisit error handling * Remove spurious empty line * Make model name more explicit
9 lines
229 B
Ruby
9 lines
229 B
Ruby
class CreateUsersSuspendedUsernames < ActiveRecord::Migration[6.0]
|
|
def change
|
|
create_table :users_suspended_usernames, id: false do |t|
|
|
t.string :username_hash, primary_key: true
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|