Class: Breathing::Installer
- Inherits:
-
Object
- Object
- Breathing::Installer
- Defined in:
- lib/breathing/installer.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/breathing/installer.rb', line 10 def install raise Breathing::UnsupportedError, "Version MySQL 5.6 is not supported." unless database_supported_version? create_log_table models.each do |model| column_names = model.columns.map(&:name) if column_names.include?('id') && column_names.include?('updated_at') Breathing::Trigger.new(model, log_table_name).create end end end |