* Fix menu dropdown disable issue * Initial base work * Add real algorithm * Add working object and test * Fix schema * Fix schema * Fix schema * Finalize * Add update script and explict_points * Proper implicit/explicit points * Fix tests * Add docs * Fix tests * Fix data update script test * Fix data update script test * Fix typo * Improve efficiency and add more logic * Changed to find_each * Change to bulk insert * Update tests and refactor logic * Various improvements * Fix typo * Fix tests * Remove extra line * Fix tests * Fix test typo * Cache site-wide tag names
6 lines
279 B
Ruby
6 lines
279 B
Ruby
class AddExplicitAndImplicitFollowPoints < ActiveRecord::Migration[6.0]
|
|
def change
|
|
add_column :follows, :explicit_points, :float, default: 1.0 # 1 is equivalent to the current default set in "score"
|
|
add_column :follows, :implicit_points, :float, default: 0.0
|
|
end
|
|
end
|