Module: Generapp::Actions::Database

Included in:
Generapp::AppBuilder
Defined in:
lib/generapp/actions/database.rb

Overview

App database associated actions

Instance Method Summary collapse

Instance Method Details

#create_databaseObject



12
13
14
# File 'lib/generapp/actions/database.rb', line 12

def create_database
  bundle_command 'exec rake db:create db:migrate'
end

#use_postgres_config_templateObject



6
7
8
9
10
# File 'lib/generapp/actions/database.rb', line 6

def use_postgres_config_template
  template 'config/postgresql_database.yml.erb',
           'config/database.yml',
           force: true
end