ActiveRecord in a generator?

How would one access ActiveRecord methods inside of Rails::Generator::NamedBase?

Thanks, Elliott

What kind of methods are you hoping to access? Or really, what are you trying to accomplish?

Colin

Hey Colin,

In my generator I am creating some migrations, amongst other things, and then dropping into the shell to run rake db:migrate. After that, I want to seed the new table with a single record.

What's the best way to do that from the generator?

Thanks, Elliott