openstreetmap-website/db/migrate/20130328184137_add_write_notes_permission.rb
2019-04-24 11:14:05 +01:00

11 lines
404 B
Ruby

class AddWriteNotesPermission < ActiveRecord::Migration[4.2]
def up
add_column :oauth_tokens, :allow_write_notes, :boolean, :null => false, :default => false
add_column :client_applications, :allow_write_notes, :boolean, :null => false, :default => false
end
def down
remove_column :client_applications, :allow_write_notes
remove_column :oauth_tokens, :allow_write_notes
end
end