Skip to content

Commit

Permalink
add seeds and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Fuchs committed Jul 22, 2012
1 parent 4c63b86 commit fb3afa9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -26,7 +26,7 @@ GIT


GIT GIT
remote: git://github.com/travis-ci/travis-core remote: git://github.com/travis-ci/travis-core
revision: 2531cab2f6584faf311eae19dda0fe6c34fb7264 revision: 2aba2d8e9ea8bf04b7d4bbbd960e6201c73a68a1
specs: specs:
travis-core (0.0.1) travis-core (0.0.1)
actionmailer (~> 3.2.3) actionmailer (~> 3.2.3)
Expand Down
6 changes: 6 additions & 0 deletions README.textile
Expand Up @@ -141,7 +141,13 @@ In order to run all tests you need to have "ChromeDriver":http://code.google.com
h3. Generating and loading seed data h3. Generating and loading seed data


<pre> <pre>
; generate seeds
$ heroku run 'cat db/seeds.yml | thor travis:db:seeds' -rproduction > db/seeds/data.sql $ heroku run 'cat db/seeds.yml | thor travis:db:seeds' -rproduction > db/seeds/data.sql

; load seeds
$ rake db:seed

; or
$ psql travis_development < db/seeds/data.sql $ psql travis_development < db/seeds/data.sql
</pre> </pre>


Expand Down
2 changes: 1 addition & 1 deletion db/seeds.rb
Expand Up @@ -7,7 +7,7 @@
end end


sql = File.read('db/seeds/data.sql') sql = File.read('db/seeds/data.sql')
connection.execute(sql) connection.execute(sql) && nil
end end


# require 'factory_girl' # require 'factory_girl'
Expand Down

0 comments on commit fb3afa9

Please sign in to comment.