When I scaffold in a migration for model that I've created I'm finding it hard to create more than 1 table within that migration. I think it has something to do with the fact that the 'createservices' class gets defined within the migration file called in this case 006_create_services. The migration file that gets created looks something like this:
class CreateServices < ActiveRecord::Migration def self.up create_table :services do |t| t.column :services_category_id, :integer t.column :account_id, :integer end end
def self.down drop_table :services end end
Is the proper approach to scaffold in each and every model and load the database 1 table at the time, this seems like a very time consuming method.