This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# last version had a bug: | |
# instead of inserting 1 million docs, | |
# it inserted 8000 docs then updated them 125 times | |
require 'rubygems' | |
require 'patron' | |
require 'json' | |
COUCH = Patron::Session.new | |
COUCH.timeout = 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddCategories < ActiveRecord::Migration | |
def self.up | |
add_column :tasks, :category, :string | |
end | |
def self.down | |
remove_column :tasks, :category | |
end | |
end |
NewerOlder