提交 1b162bdb 编写于 作者: A Aleksei Kvitinskii

corrected last migration

上级 883fa9bf
class ChangeSocialFieldsInUsers < ActiveRecord::Migration
def up
change_column(:users, :skype, :string, {:null => false, :default => ''})
change_column(:users, :linkedin, :string, {:null => false, :default => ''})
change_column(:users, :twitter, :string, {:null => false, :default => ''})
remove_column :users, :skype
remove_column :users, :linkedin
remove_column :users, :twitter
add_column :users, :skype, :string, {:null => false, :default => ''}
add_column :users, :linkedin, :string, {:null => false, :default => ''}
add_column :users, :twitter, :string, {:null => false, :default => ''}
end
def down
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册