> Is it possible with RoR (to be more exact - with ActiveRecord) to
> create database table "on fly", from the application?
certainly, if the configured db login has create table privilege, then
just call following in your code.
ActiveRecord::Base.connection.create_table :table1 do |t|
t.column :name, :string
t.column :description, :string
end
but personally I never add drop table dynamically, sounds scary.
Dorren
http://groups.wuyaSea.com --- blog, evolved.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---