Module: Ruote::Sequel
- Defined in:
- lib/ruote/sequel/storage.rb,
lib/ruote/sequel/version.rb
Defined Under Namespace
Classes: Storage
Constant Summary collapse
- VERSION =
'2.2.0'
Class Method Summary collapse
-
.create_table(sequel, re_create = false) ⇒ Object
Creates the ‘documents’ table necessary for this storage.
Class Method Details
.create_table(sequel, re_create = false) ⇒ Object
Creates the ‘documents’ table necessary for this storage.
If re_create is set to true, it will destroy any previous ‘documents’ table and create it.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/ruote/sequel/storage.rb', line 38 def self.create_table(sequel, re_create=false) m = re_create ? :create_table! : :create_table sequel.send(m, :documents) do String :ide, :size => 255, :null => false Integer :rev, :null => false String :typ, :size => 55, :null => false String :doc, :text => true, :null => false String :wfid, :size => 255, :index => true String :participant_name, :size => 512 primary_key [ :ide, :rev, :typ ] end end |