Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move to db:structure namespace, because these methods are global.

  • Loading branch information...
commit 04002db95c0cd6bafb2358d29998a89c7de46873 1 parent 09bb777
@kennyj kennyj authored
Showing with 9 additions and 8 deletions.
  1. +9 −8 activerecord/lib/active_record/railties/databases.rake
View
17 activerecord/lib/active_record/railties/databases.rake
@@ -270,6 +270,15 @@ db_namespace = namespace :db do
end
namespace :structure do
+ def set_firebird_env(config)
+ ENV['ISC_USER'] = config['username'].to_s if config['username']
+ ENV['ISC_PASSWORD'] = config['password'].to_s if config['password']
+ end
+
+ def firebird_db_string(config)
+ FireRuby::Database.db_string_for(config.symbolize_keys)
+ end
+
desc 'Dump the database structure to db/structure.sql. Specify another file with DB_STRUCTURE=db/my_structure.sql'
task :dump => [:environment, :load_config] do
abcs = ActiveRecord::Base.configurations
@@ -450,11 +459,3 @@ end
task 'test:prepare' => 'db:test:prepare'
-def set_firebird_env(config)
- ENV['ISC_USER'] = config['username'].to_s if config['username']
- ENV['ISC_PASSWORD'] = config['password'].to_s if config['password']
-end
-
-def firebird_db_string(config)
- FireRuby::Database.db_string_for(config.symbolize_keys)
-end
Please sign in to comment.
Something went wrong with that request. Please try again.