I have a migration that will dynamically create tables on fly per date. Something like this:
class CreateCollectorPeriodTable < ActiveRecord::Migration
def self.create_with(name)
create_table name.to_sym do |t|
t.string :text, :limit => 1024
end
end
end
I want to create a model that will access this migration..
I did read this: Rails Generate Model from Existing Table?, but in another question someone explained why I shouldn't try and make one model fit many tables..
Any suggestions?