]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20121012044047_add_image_use_gravatar_to_users.rb
Avoid more models in old migrations
[rails.git] / db / migrate / 20121012044047_add_image_use_gravatar_to_users.rb
index 532edd2c74ad78f134afe679dc2bd3403dd7c9df..9e9151a849a8430ca518122dc62a867c1fbbbea2 100644 (file)
@@ -1,4 +1,7 @@
-class AddImageUseGravatarToUsers < ActiveRecord::Migration[5.0]
+class AddImageUseGravatarToUsers < ActiveRecord::Migration[4.2]
+  class User < ActiveRecord::Base
+  end
+
   def self.up
     add_column :users, :image_use_gravatar, :boolean, :null => false, :default => false