]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20130328184137_add_write_notes_permission.rb
Merge branch 'comments'
[rails.git] / db / migrate / 20130328184137_add_write_notes_permission.rb
1 class AddWriteNotesPermission < ActiveRecord::Migration
2   def up
3     add_column :oauth_tokens, :allow_write_notes, :boolean, :null => false, :default => false
4     add_column :client_applications, :allow_write_notes, :boolean, :null => false, :default => false
5   end
6
7   def down
8     remove_column :client_applications, :allow_write_notes
9     remove_column :oauth_tokens, :allow_write_notes
10   end
11 end