generate

How to change the column type from string to varchar using script/generate in a rails app?

Trying to migrate a sqlite3 db for a rails app to mysql db. The column named "content" was a string type in sqlite3. I want to change it to varchar (or perhaps text) in mysql. I am not sure if there is a way to do this by using "ruby script/generate" command. Any ideas? Obviously, I could start all over again with desired column types...

generate python function in runtime and invoke them with string name?

All, foo.py def foo_001(para): tmp = para + 2 return tmp def foo_002(para): tmp = para * 2 return tmp def foo_003(para): tmp = para / 2 return tmp ... def foo_100(para): tmp = #complex algo, return tmp main.py from foo import * fun_name = ["foo_001","foo_002","foo_002" ... "foo_100"] src = 1 rzt = [] for i in fun_name: ...