]> git.openstreetmap.org Git - rails.git/blob - db/migrate/052_add_contributor_terms_to_user.rb
Add frozen_string_literal comments to ruby files
[rails.git] / db / migrate / 052_add_contributor_terms_to_user.rb
1 # frozen_string_literal: true
2
3 class AddContributorTermsToUser < ActiveRecord::Migration[4.2]
4   def self.up
5     add_column :users, :terms_agreed, :datetime
6     add_column :users, :consider_pd, :boolean, :null => false, :default => false
7   end
8
9   def self.down
10     remove_column :users, :consider_pd
11     remove_column :users, :terms_agreed
12   end
13 end