Skip to content
Browse files

add seeds and update readme

  • Loading branch information...
1 parent 4c63b86 commit fb3afa9313c6225d467e8f9002096a910a1118f4 @svenfuchs svenfuchs committed
Showing with 8 additions and 2 deletions.
  1. +1 −1 Gemfile.lock
  2. +6 −0 README.textile
  3. +1 −1 db/seeds.rb
View
2 Gemfile.lock
@@ -26,7 +26,7 @@ GIT
GIT
remote: git://github.com/travis-ci/travis-core
- revision: 2531cab2f6584faf311eae19dda0fe6c34fb7264
+ revision: 2aba2d8e9ea8bf04b7d4bbbd960e6201c73a68a1
specs:
travis-core (0.0.1)
actionmailer (~> 3.2.3)
View
6 README.textile
@@ -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
<pre>
+ ; generate seeds
$ 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
</pre>
View
2 db/seeds.rb
@@ -7,7 +7,7 @@
end
sql = File.read('db/seeds/data.sql')
- connection.execute(sql)
+ connection.execute(sql) && nil
end
# require 'factory_girl'

0 comments on commit fb3afa9

Please sign in to comment.
Something went wrong with that request. Please try again.