Sha256: 067bd7e9b9869cc26efd0e0f112e4da6fe465976e1dd0d7446c7a5152af8a718

Contents?: true

Size: 767 Bytes

Versions: 10

Compression:

Stored size: 767 Bytes

Contents

# lib/tasks/install.rake
# Usage: `rake apache_age:install`
#
namespace :apache_age do
  desc "Install & configure Apache Age within Rails (updates migrations, schema & database.yml)"
  task :install => :environment do
    # Ensure the AGE migration is in place
    Rake::Task["apache_age:add_age_migration"].invoke

    # run any new migrations
    Rake::Task["db:migrate"].invoke

    # ensure the config/database.yml file has the proper configurations
    Rake::Task["apache_age:config_database"].invoke

    # adjust the schema file (unfortunately rails mangles the schema file)
    Rake::Task["apache_age:config_schema"].invoke

    # ensure the config/initializers/types.rb file has the base AGE Types
    Rake::Task["apache_age:config_types"].invoke
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_age-0.6.4 lib/tasks/install.rake
rails_age-0.6.3 lib/tasks/install.rake
rails_age-0.6.2 lib/tasks/install.rake
rails_age-0.6.1 lib/tasks/install.rake
rails_age-0.6.0 lib/tasks/install.rake
rails_age-0.5.3 lib/tasks/install.rake
rails_age-0.5.2 lib/tasks/install.rake
rails_age-0.5.1 lib/tasks/install.rake
rails_age-0.5.0 lib/tasks/install.rake
rails_age-0.4.1 lib/tasks/install.rake