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



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

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

#use_postgres_config_templateObject



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

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