Class: PostgresMultitenant::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/postgres_multitenant/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



22
23
24
# File 'lib/generators/postgres_multitenant/install/install_generator.rb', line 22

def copy_initializer
  template 'postgres_multitenant.rb.tt', 'config/initializers/postgres_multitenant.rb'
end

#copy_tenant_schemaObject



26
27
28
# File 'lib/generators/postgres_multitenant/install/install_generator.rb', line 26

def copy_tenant_schema
  copy_file 'tenant_schema.rb', 'db/tenant_schema.rb'
end