search for: column_definit

Displaying 4 results from an estimated 4 matches for "column_definit".

2008 Jan 15
1
actionmailer the background
...stract_adapter.rb:128:in `log'' /usr/local/projects/ecera/vendor/rails/activerecord/lib/active_record/ connection_adapters/postgresql_adapter.rb:142:in `query'' /usr/local/projects/ecera/vendor/rails/activerecord/lib/active_record/ connection_adapters/postgresql_adapter.rb:528:in `column_definitions'' /usr/local/projects/ecera/vendor/rails/activerecord/lib/active_record/ connection_adapters/postgresql_adapter.rb:223:in `columns'' Can''t seem to turn anything up after a day of googling. Does this ring any bells? Thanks, Clint
2009 Nov 26
2
[error] avahi_entry_group_add_service_strlst("AdminNodeFQDN") failed: Invalid host name
...ORDER BY a.attnum from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/postgresql_adapter.rb:494:in `query' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/postgresql_adapter.rb:1039:in `column_definitions' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/postgresql_adapter.rb:659:in `columns' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/base.rb:1276:in `columns_without_gettext_activerecord'...
2006 Jul 18
3
DB Migrations & Column Order
...e-arrange this? The Rails docs says that there is an options parameter for add_column, but I couldn''t really find much information on it. I could, of course, manually write the SQL, but I want to see if there is a way to do this built-in to add_column(). The syntax would be: ADD [COLUMN] column_definition [FIRST | AFTER col_name ] So I tried: add_column :memberships, :id, :integer, :first => true There was no error, but it did not put it first. Is it possible to do this? I know it doesn''t really matter, but it bothers me...Thanks! Michael
2006 Jan 19
4
multiple database in the same actions?
Hi, I read the example in http://wiki.rubyonrails.com/rails/pages/HowtoUseMultipleDatabases, it show us how to connect to other database, each time we start a new action, however, this doesn''t work while you try to connect to two different database within the same action. SO I wonder is it possible to bind to two or more database within the same action???? Thanks you very much Saiho