]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20100516124737_add_open_id.rb
Add articles before "exit" and "roundabout"
[rails.git] / db / migrate / 20100516124737_add_open_id.rb
1 class AddOpenId < ActiveRecord::Migration[4.2]
2   def self.up
3     add_column :users, :openid_url, :string
4     add_index :users, [:openid_url], :name => "user_openid_url_idx", :unique => true
5   end
6
7   def self.down
8     remove_index :users, :name => "user_openid_url_idx"
9     remove_column :users, :openid_url
10   end
11 end