10 lines
242 B
Ruby
10 lines
242 B
Ruby
|
class AllowMissingNick < ActiveRecord::Migration
|
||
|
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
|