My current schema looks like this:
create_table "users", :force => true do |t|
t.string "username"
t.string "firstname"
t.string "lastname"
t.datetime "loggedin_at"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "user_status"
end
I want to rename "username" to "username" and make all the fields non-empty (they can be reset now).
How should I do it?
Create a migration file using the rails generate command and then configure it manually? how it is?
source
share