rgravina/okubo

View on GitHub
lib/generators/okubo/templates/add_okubo_item_answer_counts.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddOkuboItemAnswerCounts < ActiveRecord::Migration
  def self.up
    add_column :okubo_items, :times_right, :integer, :default => 0
    add_column :okubo_items, :times_wrong, :integer, :default => 0
  end

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