Created
May 2, 2011 17:09
-
-
Save PetrKaleta/951931 to your computer and use it in GitHub Desktop.
Sequel error in macruby
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
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