Merge branch 'master' into openstreetbugs2

This commit is contained in:
Kai Krueger 2011-04-19 22:00:30 -06:00
commit 001ff5764b
586 changed files with 17972 additions and 1261 deletions

View file

@ -0,0 +1,9 @@
class AddEditorPreferenceToUser < ActiveRecord::Migration
def self.up
add_column :users, :preferred_editor, :string
end
def self.down
remove_column :users, :preferred_editor
end
end

View file

@ -0,0 +1,13 @@
class AddTermsSeenToUser < ActiveRecord::Migration
def self.up
add_column :users, :terms_seen, :boolean, :null => false, :default => false
# best guess available is just that everyone who has agreed has
# seen the terms, and that noone else has.
User.update_all "terms_seen = (terms_agreed is not null)"
end
def self.down
remove_column :users, :terms_seen
end
end