Permalink
Browse files

add uss backup for import/export

  • Loading branch information...
1 parent a9dbc7b commit b24f67931c7b8af92f998a40e2e321bcbe42c944 @geraldb geraldb committed Dec 11, 2012
@@ -216,6 +216,11 @@ def export
txt = ">> Export (#{Time.now}):\r\n\r\n"
+ ## export users first
+ User.all.each do |user|
+ txt << "user-#{user.id},#{user.key},#{user.name},#{user.email},#{user.password_digest},#{user.admin},#{user.guest},#{user.active}"
+ txt << "\r\n"
+ end
Play.all.each do |play|
## always export all plays for now
Oops, something went wrong.

0 comments on commit b24f679

Please sign in to comment.