Class: MendixBridge::Migration::Generator
- Inherits:
-
Object
- Object
- MendixBridge::Migration::Generator
- Defined in:
- lib/mendix_bridge/migration.rb
Constant Summary collapse
- DROP_TYPES =
{ "entity" => "ENTITY", "microflow" => "MICROFLOW", "nanoflow" => "NANOFLOW", "page" => "PAGE", "enumeration" => "ENUMERATION", "association" => "ASSOCIATION", "constant" => "CONSTANT" }.freeze
Class Method Summary collapse
Class Method Details
.mdl(plan) ⇒ Object
231 232 233 |
# File 'lib/mendix_bridge/migration.rb', line 231 def self.mdl(plan) plan.operations.filter_map { |operation| statement(operation) }.join("\n") end |
.rename_operations(plan) ⇒ Object
235 236 237 |
# File 'lib/mendix_bridge/migration.rb', line 235 def self.rename_operations(plan) plan.operations.select { |operation| operation.action == "rename" } end |