Class: Multitenant::ViewsAndTriggers::RefreshGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/multitenant/views_and_triggers/refresh_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_mysql_triggersObject



18
19
20
21
# File 'lib/generators/multitenant/views_and_triggers/refresh_generator.rb', line 18

def generate_mysql_triggers
  Multitenant::Triggers::SQL::Drop.run
  Multitenant::Triggers::SQL::Create.run
end

#generate_mysql_viewsObject



13
14
15
16
# File 'lib/generators/multitenant/views_and_triggers/refresh_generator.rb', line 13

def generate_mysql_views
  Multitenant::Views::SQL::Drop.run
  Multitenant::Views::SQL::Create.run
end