On Tue, Oct 11, 2011 at 18:21, Nokan Emiro <uzleep...@gmail.com> wrote: > Thanks for the explanation. > > I have had the create method in my application, it calls > Models::create_scheme, because I have migrations too. > (Everything encapsulated, that's what I like about Camping.) > > Actually the problem with X.create was that my > fastcgi-camping-server did not initialize any ActiveRecord > connections, while the standard camping server did. After I > placed this > > ActiveRecord::Base.establish_connection( > :adapter => "mysql", > :host => "localhost", > :user => "*****", > :password => "******", > :database => "databasename" > ) > > before the X.create line, it worked fine. Anyway that generated > a question. As you can see I replaced sqlite to mysql, > and now I can see in the mysql database, that table names > are in form of databasename_tablename, and I have an extra > databasename_schema_infos table too. How can I turn this > behavior off? It's not critical, but a bit ugly. > > uzlee
This should remove the prefix: def ActiveRecord::Base.table_name_prefix; '' end You probably don't want to get rid of schema_infos though, since that's kinda essential for migrations. _______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list