In your experience, where is the best place to place scripts that run data loading jobs, but which rely on rails? In my project they are in the model folder, but that adds a lot of code to the model folder and won’t rails load it all into memory when the server is run (unnecessarily)? The lib/ folder looks good, but those don’t have rails access unless you manually specify that in the scripts. Any clean solution here?
Share
Are you talking jobs that you fire off via rake? (then tasks/)
Or are you talking putting data into the Rails app, then maybe you want something like the data_migration plugin.