Sha256: e4e413761ca9f91d583021f19e91f934d950ee38f8a20bb5f30813baf47f7528

Contents?: true

Size: 540 Bytes

Versions: 19

Compression:

Stored size: 540 Bytes

Contents

# :stopdoc:

namespace :db do
  namespace :gis do
    desc "Setup PostGIS data in the database"
    task :setup => [:load_config] do
      environments_ = [::Rails.env]
      environments_ << 'test' if ::Rails.env.development?
      configs_ = ::ActiveRecord::Base.configurations.values_at(*environments_).compact.reject{ |config_| config_['database'].blank? }
      configs_.each do |config_|
        ::ActiveRecord::ConnectionAdapters::PostGISAdapter::PostGISDatabaseTasks.new(config_).setup_gis
      end
    end
  end
end

# :startdoc:

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
activerecord-postgis-adapter-3.0.0.beta5 lib/active_record/connection_adapters/postgis_adapter/databases.rake
activerecord-postgis-adapter-3.0.0.beta4 lib/active_record/connection_adapters/postgis_adapter/databases.rake
activerecord-postgis-adapter-3.0.0.beta3 lib/active_record/connection_adapters/postgis_adapter/databases.rake
activerecord-postgis-adapter-2.2.2 lib/active_record/connection_adapters/postgis_adapter/databases.rake
activerecord-postgis-adapter-3.0.0.beta2 lib/active_record/connection_adapters/postgis_adapter/databases.rake
activerecord-postgis-adapter-3.0.0.beta1 lib/active_record/connection_adapters/postgis_adapter/databases.rake
activerecord-postgis-adapter-2.2.1 lib/active_record/connection_adapters/postgis_adapter/databases.rake
activerecord-postgis-adapter-2.2.0 lib/active_record/connection_adapters/postgis_adapter/databases.rake
activerecord-postgis-adapter-2.1.1 lib/active_record/connection_adapters/postgis_adapter/databases.rake
activerecord-postgis-adapter-2.1.0 lib/active_record/connection_adapters/postgis_adapter/databases.rake
activerecord-postgis-adapter-2.0.2 lib/active_record/connection_adapters/postgis_adapter/databases.rake
activerecord-postgis-adapter-2.0.1 lib/active_record/connection_adapters/postgis_adapter/databases.rake
activerecord-postgis-adapter-2.0.0 lib/active_record/connection_adapters/postgis_adapter/databases.rake
activerecord-postgis-adapter-1.1.0 lib/active_record/connection_adapters/postgis_adapter/rails4/databases.rake
activerecord-postgis-adapter-1.0.0 lib/active_record/connection_adapters/postgis_adapter/rails4/databases.rake
activerecord-postgis-adapter-0.7.1 lib/active_record/connection_adapters/postgis_adapter/rails4/databases.rake
activerecord-postgis-adapter-0.7.0 lib/active_record/connection_adapters/postgis_adapter/rails4/databases.rake
ar-postgis-0.7.1 lib/active_record/connection_adapters/postgis_adapter/rails4/databases.rake
ar-postgis-0.7.0 lib/active_record/connection_adapters/postgis_adapter/rails4/databases.rake