Class: DatabasePatcher::Action::Initializer
- Inherits:
-
DatabasePatcher::Action
- Object
- DatabasePatcher::Action
- DatabasePatcher::Action::Initializer
- Defined in:
- lib/database_patcher/action/initializer.rb
Instance Attribute Summary
Attributes inherited from DatabasePatcher::Action
Instance Method Summary collapse
Methods inherited from DatabasePatcher::Action
Constructor Details
This class inherits a constructor from DatabasePatcher::Action
Instance Method Details
#init ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/database_patcher/action/initializer.rb', line 3 def init create_patch_folder check_table_exists check_required_columns rescue Sequel::DatabaseError => explanation connection.create_table(:installed_patches) do Integer :timestamp String :uuid, size: 36 String :md5_down, size: 32 String :md5_up, size: 32 String :comment end end |