Skip to content

Instantly share code, notes, and snippets.

@PetrKaleta
Created May 2, 2011 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PetrKaleta/951931 to your computer and use it in GitHub Desktop.
Save PetrKaleta/951931 to your computer and use it in GitHub Desktop.
Sequel error in macruby
require 'rubygems'
require 'sequel'
DB = Sequel.sqlite
DB.create_table :models do
primary_key :id
column :first_attr, :fixnum
column :second_attr, :string
end
class Model < Sequel::Model
end
# filtering with two conditions
Model.filter(:first_attr => 1, :second_attr => 'foo').first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment