Skip to content

Instantly share code, notes, and snippets.

View jimwhimpey's full-sized avatar

Jim Whimpey jimwhimpey

View GitHub Profile
class WFModule
include DataMapper::Resource
storage_names[:default] = 'Modules'
property :id, Serial, :field => 'ModuleID'
property :module_name, String, :field => 'ModuleName'
property :module_fields, String, :field => 'ModuleFields'
property :parameters, String, :field => 'ModuleParameters'
property :author, String, :field => 'ModuleAuthor'
property :issue, String, :field => 'ModuleIssue'
property :deprecated, String, :field => 'ModuleDeprecated'
# Fresh ruby 1.9.2, rubygems 1.3.7 and Sinatra 1.0 installs on OS X
# This is the contents of test.rb:
require 'rubygems'
require 'sinatra'
get '/' do
haml :test
end
When I try to run this:
sudo heroku db:push mysql://root:pass@localhost/booksale
I get this:
Taps 0.3 Load Error: no such file to load -- taps/operation
You may need to install or update the taps gem to use db commands.
On most systems this will be:
CREATE TABLE `products` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`merchant_id` int(11) DEFAULT NULL,
`merchant_name` text,
`merchant_product_id` text,
`name` text,
`url_merchant` text,
`url_affiliate` text,
`description` text,
`price_gbp` float DEFAULT NULL,