Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added setup task to copy database.yml #59

Merged
2 commits merged into from

1 participant

@ddemaree

Very, very tiny change: for convenience rake setup now copies database.yml.example into place. I also included a commit that updates @db/schema.rb@ with the latest migrations.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 3 deletions.
  1. +2 −0  db/schema.rb
  2. +9 −3 lib/tasks/setup.rake
View
2  db/schema.rb
@@ -61,10 +61,12 @@
t.string "reset_password_token"
t.string "remember_token"
t.datetime "remember_created_at"
+ t.string "confirmation_token"
t.boolean "is_admin"
t.datetime "deleted_at"
end
+ add_index "members", ["confirmation_token"], :name => "index_members_on_confirmation_token", :unique => true
add_index "members", ["email"], :name => "index_members_on_email", :unique => true
add_index "members", ["reset_password_token"], :name => "index_members_on_reset_password_token", :unique => true
View
12 lib/tasks/setup.rake
@@ -1,8 +1,9 @@
desc "Sets up the application for development"
task :setup => [
- "setup:bundle", # Bundler, keep this first
- "doc:app", # YARD docs
- "setup:intro" # tl;dr, keep this last
+ "setup:bundle", # Bundler, keep this first
+ "setup:copy_default_config", # Create database.yml
+ "doc:app", # YARD docs
+ "setup:intro" # tl;dr, keep this last
]
namespace :setup do
@@ -11,6 +12,11 @@ namespace :setup do
system %{bundle}
end
+ desc "Copies default database.yml into place"
+ task :copy_default_config do
+ cp "config/database.yml.example", "config/database.yml"
+ end
+
desc "Hello, my name is ________"
task :intro do
puts "To get started: review the README and doc/README_FOR_APP files, as well as the generated YARD docs."
Something went wrong with that request. Please try again.