Displaying 13 results from an estimated 13 matches for "schema_definit".
2008 Mar 19
2
ActiveRecord bug? ActiveRecord::ConnectionAdapters::Column.type_cast for float columns
...patch it up (and deal with the no-doubt
cascade of failing tests from changing the behaviour).
If it''s expected behaviour I''ll just patch my version of rails for this app.
[1]
http://dev.rubyonrails.org/browser/trunk/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb#L57
[2]
http://dev.rubyonrails.org/browser/trunk/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb#L75
[3] http://dev.rubyonrails.org/changeset/928
[4] http://dev.rubyonrails.org/ticket/820
--~--~---------~--~----~------------~-------~--~----~
You received th...
2007 Oct 07
0
Rails AR/Oracle Unit Test: [7769] failed (getting worse)
...----------------------------------------------------
r7769 | bitsweat | 2007-10-06 22:29:37 -0700 (Sat, 06 Oct 2007) | 1 line
MySQL: speedup date/time parsing.
------------------------------------------------------------------------
U activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
U activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
U activerecord/CHANGELOG
Updated to revision 7769.
1) Failure:
test_preserving_date_objects(BasicsTest)
[./test/base_test.rb:387:in `test_preserving_date_objects''
/usr/pkg/ruby184/lib/ruby/gems/1...
2010 Jul 16
1
Rails 3 bug: undefined method `<=>' for class `ActiveSupport::Multibyte::Chars'
...6:in `quote''
c:/Ruby191/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.beta4/lib/
active_record/connection_adapters/abstract/schema_statements.rb:450:in
`add_column_o
ptions!''
c:/Ruby191/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.beta4/lib/
active_record/connection_adapters/abstract/schema_definitions.rb:
286:in `add_column_
options!''
c:/Ruby191/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.beta4/lib/
active_record/connection_adapters/abstract/schema_definitions.rb:
279:in `to_sql''
c:/Ruby191/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.beta4/lib/
active_record/connection_adap...
2009 Sep 28
5
Multi-databases support
Hi,
While I was hacking ovirt-server, I have found that it's currently
restricted to Postgres DB. Even if I like postgres for serious work on a
server, I really prefer to hack/dev locally on a Sqlite or MySQL DB.
I have googled on rails in order to find a good answer for the "foreign
key problem" which forces OVirt to stay on pg. I have found a plugin on
this particular
2006 Feb 05
0
Enum patch for Rails
...;'"}.join ","
+ else
+ limit ||= native[:limit]
+ end
column_type_sql = native[:name]
column_type_sql << "(#{limit})" if limit
column_type_sql
Index:
activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
===================================================================
---
activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
(revision 3486)
+++
activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
(working copy)
@@ -18,7 +18,7 @@...
2008 Jun 24
9
ActiveRecord 2.1 Migration support
Hi all,
I am in the process of adding Migration support to the Ingres
ActiveRecord adapter and have run in to a problem. During the call to
create_table the Ingres adapter some how causes ruby to blow the stack
and coredump/segv. I have tracked down the problem down to
"add_column_options!" in
"lib/active_record/connection_adapters/abstract/schema_statements.rb".
2008 Jun 24
9
ActiveRecord 2.1 Migration support
Hi all,
I am in the process of adding Migration support to the Ingres
ActiveRecord adapter and have run in to a problem. During the call to
create_table the Ingres adapter some how causes ruby to blow the stack
and coredump/segv. I have tracked down the problem down to
"add_column_options!" in
"lib/active_record/connection_adapters/abstract/schema_statements.rb".
2007 Apr 24
1
strange frozen string problem starting rails
...frozen string
/usr/lib/ruby/1.8/date/format.rb:105:in `chomp!''
/usr/lib/ruby/1.8/date/format.rb:105:in `method_missing''
/usr/lib/ruby/1.8/date/format.rb:963:in `_parse''
/home/mlc/src/democracynow.org/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb:114:in
`string_to_time''
/home/mlc/src/democracynow.org/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb:60:in
`type_cast''
/home/mlc/src/democracynow.org/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/sc...
2007 Jun 09
1
Rake test tasks only work with --trace
.../config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:1127:in
`write''
/dev/myapp/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:1177:in
`finalizer''
/dev/myapp/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb:324:in
`call''
/dev/myapp/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb:324:in
`column''
./db/schema.rb:96
/dev/myapp/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statement...
2006 Apr 26
5
accessing created_on causes type error
I assume that this is some newbie stupidity, but I haven''t found my
way around this problem. I have an ActiveRecord object fetched
from the database, and I need to evaluate the contents of the
updated_on field. However, *any* attempt to access that data in the
program results in a TypeError with the message ''no implicit conversion
from nil to integer''.
cust =
2006 Apr 12
0
Re: Re: Oracle unit test problem in Rails 1.1.2/Ruby-OCI 0.1
...9;s
a ''limit'' method, there''s no ''scale'' method for
ActiveRecord::ConnectionAdapters::OracleColumn. Second, even if there
was, it''s not being used in the schema dumper.
So, it looks like we need to add ''attr_reader :scale'' to
schema_definitions.rb (which is where class Column, the superclass of
OracleColumn is defined) as well as add a line in schema_dumper.rb that
prints the scale, if present. I think this would go around line 89.
Regards,
Dan
2007 Dec 05
0
[CruiseControl] RubyOnRails build 8285 failed
.../actionpack/lib/action_controller/assertions/model_assertions.rb
Revision 8285 committed by marcel on 2007-12-05 14:47:44
Document the timestamps schema definition method. Closes #9000 [mikong]
M /trunk/activerecord/CHANGELOG
M /trunk/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
TEST FAILURES AND ERRORS
-----------------------
Name: test_with_two_tables_in_from_without_getting_double_quoted(EagerAssociationTest)
Type: Failure
Message: <2> expected but was
<0>.
./test/associations/eager_test.rb:48:in `test_with_two_tables_in_from_without_getting_doubl...
2006 Jan 09
3
rails ignoring the migration file
I have a mysql database that I am trying to use migrations on. The
problem that I am having is that when I create a blob field in my
migration file like so:
t.column "data", :binary, :limit => 15.megabytes, :null => false
rails changes it to this in the schema:
t.column "data", :binary, :default => "", :null => false
not only is this not what I wanted