Have created a new method, at the time of adding a new column in existing method. The method name is called :after
for ex
add_column :users, :user_info, :string, :after => "email"
when we execute the migration the email will be place just after user_info field in users table.
Wednesday, September 3, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment