Sha256: 568f1e776c2644b7821c444e5e5aa1992eaef577ba5599f73086d010084cbc09

Contents?: true

Size: 397 Bytes

Versions: 22

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

class AddActiveRecallItemAnswerCounts < ActiveRecord::Migration[5.2]
  def self.up
    add_column :active_recall_items, :times_right, :integer, default: 0
    add_column :active_recall_items, :times_wrong, :integer, default: 0
  end

  def self.down
    remove_column :active_recall_items, :times_right
    remove_column :active_recall_items, :times_wrong
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
active_recall-2.1.0 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-2.0.2 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-2.0.1 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-2.0.0 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.8.6 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.8.5 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.8.4 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.8.3 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.8.0 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.6.4 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.6.3 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.6.2 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.6.1 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.6.0 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.5.0 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.4.0 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.3.0 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.2.2 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.2.1 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb
active_recall-1.2.0 lib/generators/active_recall/templates/add_active_recall_item_answer_counts.rb