]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20130328184137_add_write_notes_permission.rb
Add frozen_string_literal comments to ruby files
[rails.git] / db / migrate / 20130328184137_add_write_notes_permission.rb
1 # frozen_string_literal: true
2
3 class AddWriteNotesPermission < ActiveRecord::Migration[4.2]
4   def up
5     add_column :oauth_tokens, :allow_write_notes, :boolean, :null => false, :default => false
6     add_column :client_applications, :allow_write_notes, :boolean, :null => false, :default => false
7   end
8
9   def down
10     remove_column :client_applications, :allow_write_notes
11     remove_column :oauth_tokens, :allow_write_notes
12   end
13 end