foodsoft/db/migrate/20130920201529_allow_missing_nick.rb
2020-09-05 14:40:11 +02:00

9 lines
247 B
Ruby

class AllowMissingNick < ActiveRecord::Migration[4.2]
def self.up
change_column :users, :nick, :string, :default => nil, :null => true
end
def self.down
change_column :users, :nick, :string, :default => "", :null => false
end
end