Displaying 20 results from an estimated 7000 matches similar to: "MediumText with Rails Migrations"
2006 Mar 02
2
List controllers?
Hi Raileans,
I''m wondering if there''s any way to get a list of all of the valid
controllers in my application. Specifically, I''m doing some funny
dynamic stuff in my routes.rb and wanted to make sure that valid
controllers will always get mapped while things that are not
controllers will go to my other map. I think it would look something
like this in my mind''s
2006 Jan 23
6
Ruby at O''Reilly Rough Cuts
Not sure if this is old news or not, but it would appear that both the
Ruby Cookbook and a Rails book are now available for purchase at
O''Reilly Rough Cuts (something akin to PragProg''s beta book program):
http://rubyurl.com/nHz
http://my.safaribooksonline.com/?mode=roughcuts&srchtext=ROUGHCUTS
I haven''t tried them yet, but it definitely seems worth checking out.
2006 Feb 10
4
before_save gotcha
Is it will known and accepted that before_save triggers should return
true? I didn''t notice this before but now I see it in the
documentation.
Here is what I''m doing in my model:
def before_save
if self.has_album?
self.visible = self.album.visible?
end
end
That results in the expected result when album.visible? is true - but
not when it is false. To make it
2006 May 30
2
ActiveMerchant
Is anyone using ActiveMerchant currently?
I''ve seen it recommended on this list several times, but it seems kind
of buggy and incomplete and I''m having trouble getting it to work.
>From the example at http://home.leetsoft.com/am/, I''ve tried:
gateway = ActiveMerchant::Base.gateway(:authorized_net)
response = gateway.capture(1000, creditcard)
..but it
2006 Mar 03
5
Rails Site: VegasLists.com
Just wanted to drop a note about a new Rails site that we''re testing in the
wild, http://www.vegaslists.com.
The site allows users to create lists about anything Las Vegas related and
then lets other users comment on those lists.
It was a project that went from concept to completed in about 2 weeks,
working on it after the ''real job'' for fun. It''s very simple
2006 Apr 07
0
Migrations & Postgres: Change column not functional?
I''ve got a MySQL app, which I''m moving to a new server which is using
Postgres. This seems like the perfect application of migrations. (Note: I
don''t mean "using migrations to switch from MySQL to Postgres" so much as
"Hey, I''ve _been_ using migrations all along, and this is where I cash in".)
There were some odd bugs when working with the
2011 Oct 17
0
[LLVMdev] LLC ARM Backend maintainer
On 10/17/2011 09:20 AM, Pawel Wodnicki wrote:
>
> My first ARM testing results or lack of them indicate
> that 3.0 release requires some some beefy machines to build.
> It is not so much raw cpu speed but memory and lots of it.
> My builds got to linking llc and at that point linker started
> eating megabytes of memory like chocolate.
>
> So sadly chumbys, beagleboards,
2011 Oct 17
1
[LLVMdev] LLC ARM Backend maintainer
Also, was this with binutils-gold?
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Tobias Grosser
Sent: 17 October 2011 09:56
To: Pawel Wodnicki
Cc: llvmdev
Subject: Re: [LLVMdev] LLC ARM Backend maintainer
On 10/17/2011 09:20 AM, Pawel Wodnicki wrote:
>
> My first ARM testing results or lack of them indicate
> that
2011 Oct 17
2
[LLVMdev] LLC ARM Backend maintainer
My first ARM testing results or lack of them indicate
that 3.0 release requires some some beefy machines to build.
It is not so much raw cpu speed but memory and lots of it.
My builds got to linking llc and at that point linker started
eating megabytes of memory like chocolate.
So sadly chumbys, beagleboards, iThingis(?), Raspberry Pis, Gumstix
and even inexpensive Tegra2 boards seem to be out of
2006 Jul 01
1
Changing column to NOT NULL with migration silently failing.
Hi
I''ve created a migration called
make_customer_type_id_not_null_for_customers. The migration .rb file
looks like this:
class MakeCustomerTypeIdNotNullForCustomers < ActiveRecord::Migration
def self.up
change_column(:customers, :customer_type_id, :integer, { :null => false })
end
def self.down
change_column(:customers, :customer_type_id, :integer, { :null =>
2008 Nov 25
1
migration error, mysql, change column limit
Hmm, one of my migrations have stopped working on #down. It still works
on #up. (It''s also possible that I never tested it for #down before, and
it never worked, heh.)
I can''t figure out why not. Pretty simple.
class WidenRequestParams < ActiveRecord::Migration
def self.up
change_column :requests, :params, :string, :limit => 2048
end
def self.down
2007 Mar 28
1
Migration w/change_column fails on MySQL 5.1
All,
I have a migration with statements like this:
change_column :quote_input_class_codes, :employee_payroll, :integer,
:default => 0, :null => false
When I migrate, I get:
(in C:/eclipse/workspace/OnlineRating)
== DefaultQiccPayrollsToZero: migrating
=======================================
-- change_column(:quote_input_class_codes, :employee_payroll, :integer,
{:null=>false,
2008 Jan 19
1
Decimals are being converted to Bigdecimals!!!!!
Hi all,
I''m working on a financial app, and have set up some columns in my
tables as decimals with precision => 8 and scale => 2. My migration
looks like:
change_column :lineitems, :price, :decimal, :precision =>
8, :scale => 2
change_column :payments, :amount, :decimal, :precision =>
8, :scale => 2
I''ve run the migration and restarted the server. I
2006 Apr 30
4
Migration, BigInts, and string lengths
Howdy Y''all,
I was thrilled to recently discover migrations, as that framework
addresses a common problem in an elegant way. I have, however, gotten
tripped up a bit as I''ve worked with them.
The first problem I encountered was that, though I was using a BigInt
data type in a field in my dev database, my unit tests were failing
because when I copied the schema from the dev
2005 Dec 15
2
HABTM being tricky
I''ve just been bodyslammed by a problem with has_and_belongs_to_many -
as far as I can tell, if it doesn''t appear at the top of other
relationship definitions it doesn''t seem to work right. For example:
class Artist < ActiveRecord::Base
has_and_belongs_to_many :genres
has_many :albums
has_many :videos
has_many :cds
has_many :collections
end
..works fine
2012 May 25
2
Typecast values on change_column for postgresql
Hello,
Currently if you have a string column that have only number values (think a
year column using string by mistake) and you want to change to integer, you
can''t.
If you apply this monkey-patch will be possible:
https://gist.github.com/1393441
Note: if some value can''t be casted by postgresql (if have a letter for
example), the migration will fail as expected.
I think
2006 May 18
1
ActiveRecord problems from within template
Hi,
my Film model has this:
has_many :live_action_personnel,
:class_name => "Credit",
:include => :credit_type,
:order => ''credit_types.position, credits.position ASC'',
:group => ''credit_types.personnel_type'',
2010 Aug 13
10
:limit text mysql
I have a rails 3.rc app that I''m developing. I have a text entry in one
my models that can sometimes be quite big. I tried setting :limit =>
4294967296 on the text column in my migration file but this doesn''t seem
to have any effect. The column is till created as a TEXT column rather
than MEDIUMTEXT or LONGTEXT.
Does anyone have any idea why this might be happening? Is there
2006 Mar 30
2
database.yml and Dreamhost
I am unable to connect to my databases.
Here is the error I am getting:
MysqlError (Can''t connect to local MySQL server through socket
''/var/run/mysqld/mysqld.sock'' (2)):
Here is my database.yml:
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql --
2009 May 19
1
what is deliver(1.1.10) doing in /tmp
dear all,
first part of log snippet is to show a bit of contrast, to me it's
peculiar situation
it's about messages between local users, actually one user, when I use
command line mailx or anther local account to send to A_local user - ok
second part is this weir error, it's selinux which prevents deliver
write to /tmp, I believe thsese messages are from A_local user cron
jobs(to