1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/spec/models/sequel/worker.rb
Aryk Grosz 0c4a25a8d4 Add Sequel transactions and locking
* Add aasm features of ActiveRecord to Sequel! :)
 * All specs pass for sequel, activerecord, and mongoid.
 * Refactor Sequel models to be namespaced under “Sequel”. We
   should do something similar for ActiveRecord in the specs
   to avoid collisions.

Addresses #474

(cherry picked from commit df97ce754f47864abbcb837227da5c4d0ff77289)
2017-07-07 08:08:33 +05:30

12 lines
210 B
Ruby

db = Sequel::DATABASES.first || Sequel.connect(SEQUEL_DB)
db.create_table(:workers) do
primary_key :id
String "name"
String "status"
end
module Sequel
class Worker < Sequel::Model(:workers)
end
end