forgeplus/db/migrate/20200518065521_add_watchers...

6 lines
145 B
Ruby

class AddWatchersCountToUser < ActiveRecord::Migration[5.2]
def change
add_column :users, :watchers_count, :integer, default: 0
end
end