Class: ModuleSetup
- Inherits:
-
Sequel::Migration
- #Object
- Object
- Sequel::Migration
- ModuleSetup
- Defined in:
- lib/story_teller/inform/relational/module.rb
Overview
The ModuleSetup class
Instance Method Summary collapse
Methods inherited from Sequel::Migration
Instance Method Details
#down ⇒ Object
40 41 42 |
# File 'lib/story_teller/inform/relational/module.rb', line 40 def down drop_table(:module, cascade: true) if table_exists? :module end |
#up ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/story_teller/inform/relational/module.rb', line 27 def up log.debug "#up" create_table? :module do primary_key :id index :name index :created_at String :name, unique: true, null: false DateTime :created_at DateTime :modified_at end end |