Sha256: 6b592db4df55c4a4685280e13fc33105b34c7532311ec824f6dc922e9062884a

Contents?: true

Size: 464 Bytes

Versions: 2

Compression:

Stored size: 464 Bytes

Contents

module Pah
  module Templates
    class Database < Pah::Template
      def call
        copy_static_file 'config/database.yml'
        gsub_file 'config/database.yml', /PROJECT/, Pah.configuration.app_name
        git add: 'config/database.yml'
        git_commit 'Add config/database.yml.'

        run 'bundle exec rake db:create db:migrate'

        git add: 'db/schema.rb'
        git_commit 'Create database, adding db/schema.rb.'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pah-0.0.28 lib/pah/templates/database.rb
pah-0.0.27 lib/pah/templates/database.rb