* Prevent need for eager loading
* Add initial implementation of user block
* Remove debugger oops
* Add index and foreign keys for user_block table
* Use private method instead of exists
* Move channel handling logic to service object
* Update styling a bit
* Use profileDropdown file for future proofing
* Remove commented out code
* Render json: { result } for all endpoints
* Add statuses for sad paths
* Add better sad path handling in the JS
* Remove accidentally committed spec file
* Don't wait for DOM to load block button
* Use equality for accuracy in slug query
* Add status code for unauthorized requests
* Add missing comma sigh
6 lines
238 B
Ruby
6 lines
238 B
Ruby
class AddBlockedCountToUsers < ActiveRecord::Migration[5.2]
|
|
def change
|
|
add_column :users, :blocked_by_count, :bigint, null: false, default: 0
|
|
add_column :users, :blocking_others_count, :bigint, null: false, default: 0
|
|
end
|
|
end
|