Module: Epiphy::Schema
- Defined in:
- lib/epiphy/scheme.rb
Instance Method Summary collapse
-
#create_collection ⇒ Object
Create a collection storage in database.
-
#drop_collection ⇒ Object
Drop a collection storage in database.
Instance Method Details
#create_collection ⇒ Object
Create a collection storage in database.
5 6 7 8 9 |
# File 'lib/epiphy/scheme.rb', line 5 def create_collection query do |r| r.table_create(self.collection) end end |
#drop_collection ⇒ Object
Drop a collection storage in database
13 14 15 16 17 |
# File 'lib/epiphy/scheme.rb', line 13 def drop_collection query do |r| r.table_drop(self.collection) end end |