Class: Osmer::Schema::App
- Defined in:
- lib/osmer/schema/app.rb
Instance Method Summary collapse
Instance Method Details
#create(schema = nil) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/osmer/schema/app.rb', line 7 def create(schema = nil) if schema osmer.find_schema(schema).create! db else osmer.create_all! db end end |
#drop(schema = nil) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/osmer/schema/app.rb', line 25 def drop(schema = nil) if schema osmer.find_schema(schema).drop! db else osmer.drop_all! db end end |
#recreate(schema = nil) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/osmer/schema/app.rb', line 16 def recreate(schema = nil) if schema osmer.find_schema(schema).recreate! db else osmer.recreate_all! db end end |