Last active
April 27, 2019 00:53
-
-
Save rodloboz/26342c2c3c8d6cd66f064caac1f7b733 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddFollowCountersToUsers < ActiveRecord::Migration[6.0] | |
def change | |
add_column :users, :followers_count, :integer, null: false, default: 0 | |
add_column :users, :followings_count, :integer, null: false, default: 0 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment