aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/dev_setup.rake10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/tasks/dev_setup.rake b/lib/tasks/dev_setup.rake
new file mode 100644
index 0000000..42a37a5
--- /dev/null
+++ b/lib/tasks/dev_setup.rake
@@ -0,0 +1,10 @@
+# Rake task for local development setup
+
+namespace :dev do
+ task :config_db do
+ sh 'ln -s database.yml.sqlite3 config/database.yml'
+ end
+
+ desc "Setup local environment for development."
+ task :setup => [ 'config_db', 'db:setup' ]
+end