]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20111116184519_update_oauth.rb
Just pass the user object, rather than the display_name, to the user_path helper
[rails.git] / db / migrate / 20111116184519_update_oauth.rb
1 class UpdateOauth < ActiveRecord::Migration[5.0]
2   def up
3     add_column :oauth_tokens, :scope, :string
4     add_column :oauth_tokens, :valid_to, :timestamp
5   end
6
7   def down
8     remove_column :oauth_tokens, :valid_to
9     remove_column :oauth_tokens, :scope
10   end
11 end