class AddActiveRecallItemAnswerCounts
Public Class Methods
down()
click to toggle source
# File lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb, line 9 def self.down remove_column :active_recall_items, :times_right remove_column :active_recall_items, :times_wrong end
up()
click to toggle source
# File lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb, line 4 def self.up add_column :active_recall_items, :times_right, :integer, default: 0 add_column :active_recall_items, :times_wrong, :integer, default: 0 end