Displaying 20 results from an estimated 2000 matches similar to: "Best Forum? Was: Migration doesn''t seem to preserve create_table options in schema"
2006 Jan 08
0
Migration doesn''t seem to preserve create_table options in schema
Hi,
I have the following migration (abbreviated):
class Initial < ActiveRecord::Migration
def self.up
create_table :messages, :options => ''ENGINE=MyISAM'', :force => true do
|t|
t.column :id, :integer, :null => false
t.column :external_id, :string, :null => false
t.column :recipients_count, :integer, :default => 0
2006 May 18
0
SOLVED: Re: How to debug the rendering in Rails?
It seems to be working now.
I used "puts" debug statement that were rendered to the webrick console in
the dev environment, but that made fastcgi trip ...
Cheers,
Mariano
On 5/18/06, Mariano Kamp <mariano.kamp@gmail.com> wrote:
>
> Hi,
>
> I have some controller code like this:
>
> def mailing_lists
> @ml =
2007 Feb 13
1
observe_field and select box
Hi everyone,
I am a newbee in RoR and i could use some help. I have a select box
populated by:
<select name = "test_company" id = "test_company">
<option selected value=test.company.to_s>Create New </option>
<%= options_for_select Company.find(:all,
:conditions => ["name =?", test.company],
:order => "id asc").collect{|c|
2006 Apr 04
0
making a set column type with create_table
create_table(:username, :options => ''ENGINE=MyISAM DEFAULT
CHARSET=utf8'') do |table|
table.column :name, :string
# THE LINE BELOW FAILS
table.column :tag, :set
...
...
end
Hello all,
I''d like to make a set column with the create_table method. I''ve googled
around some, but did not find an answer. Is this possible with
2006 Apr 12
0
create_table and char columns
When I use create_table to make a table :string always makes a varchar
column. How can I make it so that :string will make a char column?
create_table(:accounts, :options => ''ENGINE=MyISAM DEFAULT'') do |table|
# This creates a varchar column, I would like a char column.
table.column :username, :string
...
end
--
Posted via http://www.ruby-forum.com/.
2006 Mar 25
3
Rails Plugins: Why to register your own functionality with send()?
Hi there,
I have seen in the file column plugin (
http://www.kanthak.net/opensource/file_column/) from Sebastian Kanthak or
David''s acts_as_taggable plugin that to register my functionality I need to
do something like this:
ApplicationHelper.send(:include, InPlaceEditAssociations)
I am wondering why not:
(a)
module ApplicationHelper
include InPlaceEditAssociatons
end
or:
(b)
2006 Feb 11
16
Why does''nt rails pick up more metadata from a mysql schema?
Hi,
when I define a db column to be non-nullable or of length 20 or as
numeric, I would expect rails to validate that, but that doesn''t seem
to be the case.
Any idea why that is? The metadata is accessible, at least in the mysql case.
I am using rails 1.0 with mysql 5.
Cheers,
Mariano
2006 May 25
4
Does TMail support Nested Multipart Messages? (Repost)
Hi,
does anybody know if TMail supports nested multipart messages? I read
a changelog that indicates so
(http://dev.rubyonrails.org/svn/rails/trunk/actionmailer/CHANGELOG), but
I haven''t been able to get it working so far.
Maybe I am doing something wrong here?
I attached the sample mail. Here is the code to parse it:
require File.dirname(__FILE__) +
2006 Mar 25
2
Rails Plugins: How to copy artefacts to the public directory during install? When is install.rb executed anyway?
Hi,
I want to write a plugin that uses JavaScript and I am wondering how to put
the static content, i.e. the JavaScript, in place?
I read the documentation I found (
http://wiki.rubyonrails.org/rails/pages/Plugins and links) and looked at the
listed plugins.
One thing I found was that subversion seems to be a prerequisite for
providing or even installing plugins. Is that right?
The other thing
2006 May 18
2
How to debug the rendering in Rails?
Hi,
I have some controller code like this:
def mailing_lists
@ml = MailingList.find_by_identifier(@params[:id])
@messages = @ml.messages
@headers["Content-Type"] = "application/atom+xml"
@response.headers[''Last-Modified''] =
@messages.last.created_on.httpdateunless @
messages.empty?
minTime =
2006 May 19
2
Problem with joins and overlapping field names
Hi,
I have the following code:
@conversation_pages,
@conversations = paginate(:conversations,
:per_page => 20,
:joins => ''LEFT JOIN messages on
messages.conversation_id = conversations.id ''+
''LEFT JOIN email_addresses on
2005 Dec 15
5
Rails vs. J2EE: Sharing state in memory?
Hi,
I am from a Java background and pretty new to Ruby and Rails.
What I am wondering is how I would shared state accross requests and users
without involving IO, i.e. use memory.
My current understanding is that for each request a new process ist spawn
and therefore it gets its own memory. So no sharing can take place between
requests?
Do I understand this right? For those who know
2006 Mar 18
1
Need help .. Rails Recipes, in_place_editor, selecting associations
Hi,
I am currently reading the Rails Recipes book and like the chapter on
providing your own in_place_editor for enumerations / selects.
I understood so far, or I believe that I understood ;-), how to do that
for a field that uses values only, like choosing from "red", "black",
"green". What I fail to understand is how to chose from associated objects?!
2006 Apr 19
6
undefined method `create_table'' for #<LoginController:0x5e60
I am geeting the foolowing error.
undefined method `create_table'' for #<LoginController:0x5e60110>
I wrote the crete action in application controller.
I am coping ther total worng please help me!
class ApplicationController < ActionController::Base
model :cart
model :line_item
before_filter :authorize
def create
# create_table() yields a TableDefinition instance
2009 Apr 09
4
create_table with unique combo
I need to create a table replacing default integer id with a string id
and making a combo of (id and version) unique primary key. Here is
what I''ve got so far.
class CreateCatalogs < ActiveRecord::Migration
def self.up
create_table :catalogs, :id => false do |t|
t.string :id, :limit => 20, :null => false
t.string :version, :default =>
2012 Apr 28
2
"Modified Diebold-Mariano Test" with forecast package
Hi
I tried to calculate modified Diebold-Mariano Test in R . I have already
find a "forecast" package to calculate the
Diebold-Mariano Test.
Please let me know how to obtain " Modified Diebold-Mariano Test" ?
Regards,
Serdar
--
View this message in context: http://r.789695.n4.nabble.com/Modified-Diebold-Mariano-Test-with-forecast-package-tp4594648p4594648.html
Sent from
2006 Jul 16
2
how to specify a hash in a migration create_table.
I want to have a column in my model that needs to store variable information
in a structured manner. For example,:
Equipment type computer:
ram: 512-mb
os: PuppyLinux 2.0.1
Equipment type router:
manufacturer: LinkSys
ports: 4
wireless: yes
I would have customized view ( RJS ) that would prompt the user for the
correct information based on the EquipmentType selected. The info
2014 Jun 26
0
Opus DTX issue report
The email might have been blocked due to the attachment size, here?s a
link to it.
https://www.dropbox.com/s/r9j7l3cbb02ob7i/opusDtx_noiseFix1_inOut.zip
Pascal
On 26/06/14 19:02, "Pascal Huart (phuart)" <phuart at cisco.com> wrote:
>Hi Jean-Marc,
>Thanks for the fix, the reconstructed signal is now much better.
>Unfortunately there are still discontinuities which show
2006 Jul 06
1
Bug test di Rails
salve a tutti,
sentite, non riesco a capire i test automatizzati di Rails.
Secondo il libro, il ciclo di vita di un test prevede che per ogni
metodo ( che sarebbe in pratica un test da eseguire ) si verificano
sempre 3 eventi:
1) la cancellazione di tutti i record della tabella in esame
2) il caricamento di tutti i dati di test elencati nel file di fixture
della tabella ( ad esempio
2016 Oct 27
1
Subscription not immediately reflected
I can't reproduce this. Can you send your doveconf -n output and also an example IMAP session showing what goes wrong? I tested with Maildir and mdbox, and with and without mailbox_list_index=yes:
x lsub "" *
* LSUB () "/" INBOX
x OK Lsub completed (0.000 + 0.000 secs).
x subscribe Trash
x OK Subscribe completed (0.000 + 0.000 secs).
x lsub "" *
* LSUB ()