]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20111116184519_update_oauth.rb
Make OAuth work again
[rails.git] / db / migrate / 20111116184519_update_oauth.rb
diff --git a/db/migrate/20111116184519_update_oauth.rb b/db/migrate/20111116184519_update_oauth.rb
new file mode 100644 (file)
index 0000000..59ab9c3
--- /dev/null
@@ -0,0 +1,11 @@
+class UpdateOauth < ActiveRecord::Migration
+  def up
+    add_column :oauth_tokens, :scope, :string
+    add_column :oauth_tokens, :valid_to, :timestamp
+  end
+
+  def down
+    remove_column :oauth_tokens, :valid_to
+    remove_column :oauth_tokens, :scope
+  end
+end