Browse files

Added db migration for API key

  • Loading branch information...
1 parent 6c9e270 commit 7964617d646caf5477f093c0dbe2fec79eb31c44 @skalnik skalnik committed Jun 29, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 db/migrate/20100630014806_add_api_key_to_users.rb
View
9 db/migrate/20100630014806_add_api_key_to_users.rb
@@ -0,0 +1,9 @@
+class AddApiKeyToUsers < ActiveRecord::Migration
+ def self.up
+ add_column :users, :api_key, :string, :limit => 40, :default => ""
+ end
+
+ def self.down
+ remove_column :users, :api_key
+ end
+end

0 comments on commit 7964617

Please sign in to comment.