search for: migration_test

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

Did you mean: migration_cost
2006 Apr 25
3
command rake migration also runs #down method ?
...to me... TIA, Tuka C:\TDV>ruby script/console Loading development environment. >> require ''db/migrate/001_test_migration.rb'' => true >> TestMigration.down == TestMigration: reverting =================================================== -- drop_table(:migration_test) -> 0.0900s == TestMigration: reverted (0.0900s) ========================================== => nil >> TestMigration.up == TestMigration: migrating =================================================== -- create_table(:migration_test) -> 0.1200s == TestMigration: migra...
2008 Jan 16
0
[CruiseControl] RubyOnRails build 8649 failed
...ror> Message: <"undefined local variable or method `quoted_column_name'' for #<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter:0xb74d5154>"> ---Backtrace--- ./test/../lib/active_record/connection_adapters/postgresql_adapter.rb:597:in `add_column'' ./test/migration_test.rb:209:in `test_add_column_not_null_with_default'' ./test/migration_test.rb:209:in `test_add_column_not_null_with_default'' ./test/../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:90:in `__send__'' ./test/../lib/../../activesupport/lib/active_suppo...
2010 Jun 11
5
Issues creating tables in mysql tests
...hints are appreciated; I''m still trying to find my way around Rails code. For a bug I''ve found I need to create a table called "values" so I added this: create_table :values do |t| t.integer :value end among the other table creations in activerecord/test/cases/migration_test.rb. Is that ok? But then, when I run the tests for a second time, I get an error about values already existing. Where are the drop table calls? I couldn''t find them. My more immediate problem so far is that I''m getting this error: /Users/pupeno/Projects/rails/rails/activerecord/...
2007 Nov 13
4
question about activerecord test_numeric_fields in base_test.rb
...m = NumericData.new( :bank_balance => 1586.43, :big_bank_balance => BigDecimal("1000234000567.95"), :world_population => 6000000000, :my_house_population => 3 ) assert m.save m1 = NumericData.find(m.id) assert_not_nil m1 # As with migration_test.rb, we should make world_population >= 2**62 # to cover 64-bit platforms and test it is a Bignum, but the main thing # is that it''s an Integer. assert_kind_of Integer, m1.world_population assert_equal 6000000000, m1.world_population assert_kind_of Fixnum, m1.my_hous...