diff options
author | Sytse Sijbrandij <sytses@gmail.com> | 2014-12-04 18:54:08 +0300 |
---|---|---|
committer | Sytse Sijbrandij <sytses@gmail.com> | 2014-12-04 18:54:08 +0300 |
commit | 704b7237e6c4daa3642c01f8803072fdc3a45eaf (patch) | |
tree | 6ade58d849ef4381a6d848af548d26178b6ffc11 | |
parent | 490ae737c748a393e57040bfd649bb1c4244e494 (diff) |
Fix notifications for developers that don't read the documentation.
-rw-r--r-- | doc/development/rake_tasks.md | 5 | ||||
-rw-r--r-- | lib/tasks/seed.rake | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/doc/development/rake_tasks.md b/doc/development/rake_tasks.md index 6d9ac161e91..ffa61e66134 100644 --- a/doc/development/rake_tasks.md +++ b/doc/development/rake_tasks.md @@ -1,6 +1,6 @@ # Rake tasks for developers -## Setup db with developer seeds: +## Setup db with developer seeds Note that if your db user does not have advanced privileges you must create the db manually before running this command. @@ -8,6 +8,9 @@ Note that if your db user does not have advanced privileges you must create the bundle exec rake setup ``` +The `setup` task is a alias for `gitlab:setup`. +This tasks calls `db:setup` to create the database, with `add_limits_mysql` it adds limits to the database schema in case of a MySQL database and fianlly it runs `db:seed_fu` to seed the database. + ## Run tests This runs all test suites present in GitLab. diff --git a/lib/tasks/seed.rake b/lib/tasks/seed.rake new file mode 100644 index 00000000000..c54a1e694a5 --- /dev/null +++ b/lib/tasks/seed.rake @@ -0,0 +1,8 @@ +namespace :db do + namespace :seed do + desc "Seed is replaced with seed_fu" + task :dump => :environment do + raise "Please run db:seed_fu instead of db:seed." + end + end +end |