aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/Rakefile
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-14 14:07:16 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-14 14:07:16 -0800
commit2947197421dd6b00a3c6694b768322d095cda69b (patch)
tree460840cc8eee13398fe37d4dbb9acd5700984f5f /activerecord/Rakefile
parentf30a3106f3cba97ace9a5ec36b8c18e3f38ee043 (diff)
downloadrails-2947197421dd6b00a3c6694b768322d095cda69b.tar.gz
rails-2947197421dd6b00a3c6694b768322d095cda69b.tar.bz2
rails-2947197421dd6b00a3c6694b768322d095cda69b.zip
use rake to create test databases for us
Diffstat (limited to 'activerecord/Rakefile')
-rwxr-xr-xactiverecord/Rakefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile
index ef99e0b26f..e414c4fb1c 100755
--- a/activerecord/Rakefile
+++ b/activerecord/Rakefile
@@ -72,6 +72,15 @@ end
end
end
+rule '.sqlite3' do |t|
+ sh %Q{sqlite3 "#{t.name}" "create table a (a integer); drop table a;"}
+end
+
+task :test_sqlite3 => [
+ 'test/fixtures/fixture_database.sqlite3',
+ 'test/fixtures/fixture_database_2.sqlite3'
+]
+
namespace :mysql do
desc 'Build the MySQL test databases'
task :build_databases do