add rake task and seed data for discourse_api

This commit is contained in:
Blake Erickson
2014-09-10 20:53:21 -06:00
parent 7f3797b635
commit 5f124df251
2 changed files with 7 additions and 0 deletions

2
db/api_test_seeds.rb Normal file
View File

@ -0,0 +1,2 @@
User.create(name: "Test User", email: "test_user@example.com", password: "password", username: "test_user", approved: true, active: true, auth_token: "39a925803ddc658a68a7e276e558ed62", admin: true)
ApiKey.create(key: 'test_d7fd0429940', user_id: 1, created_by_id: 1)