search for: say_with_time

Displaying 20 results from an estimated 24 matches for "say_with_time".

2006 Jul 14
3
Migration not updating fields
...d"=>"0", "created"=>"2006-07-13 12:40:33", "updated"=>nil}>] Notice it found one and of couse now if I do p.backlog_items.size it returns 1 So I added this bit of code to the migration # Reset the column Product.reset_column_information say_with_time "Updating products..." do Product.find(:all).each do |p| blg = p.backlog_items p.backlog_items_count = blg.size end end But it still sets the count to 0 where it should be 1, any help appreciated... -- Posted via http://www.ruby-forum.com/.
2006 Mar 29
2
Rake Migrations for Rails 1.1
...uby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/migration.rb:271:in `send'' d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/migration.rb:271:in `method_missing'' d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/migration.rb:269:in `say_with_time'' d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/migration.rb:255:in `measure'' d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/migration.rb:255:in `say_with_time'' d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_rec...
2006 Aug 16
6
Newbie-Question
..._record/connection_ adapters/abstract/schema_statements.rb:122:in `add_column'' d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.r b:273:in `method_missing'' d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.r b:257:in `say_with_time'' d:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'' d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.r b:257:in `say_with_time'' d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.r b:271:in `method_missing'...
2010 Jul 16
1
Rails 3 bug: undefined method `<=>' for class `ActiveSupport::Multibyte::Chars'
...apters/mysql_adapter.rb:442:in `create_table'' c:/Ruby191/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.beta4/lib/ active_record/migration.rb:356:in `block in method_missing'' c:/Ruby191/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.beta4/lib/ active_record/migration.rb:332:in `block in say_with_time'' c:/Ruby191/lib/ruby/1.9.1/benchmark.rb:294:in `measure'' c:/Ruby191/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.beta4/lib/ active_record/migration.rb:332:in `say_with_time'' c:/Ruby191/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.beta4/lib/ active_record/migration.rb:352:in...
2007 Jun 09
1
Rake test tasks only work with --trace
...; /dev/myapp/config/../vendor/rails/activerecord/lib/active_record/migration.rb:275:in `send'' /dev/myapp/config/../vendor/rails/activerecord/lib/active_record/migration.rb:275:in `method_missing'' /dev/myapp/config/../vendor/rails/activerecord/lib/active_record/migration.rb:259:in `say_with_time'' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' /dev/myapp/config/../vendor/rails/activerecord/lib/active_record/migration.rb:259:in `say_with_time'' /dev/myapp/config/../vendor/rails/activerecord/lib/active_record/migration.rb:273:in `method_missing'' ./db/...
2010 May 28
3
Beginner Facing Problem with rake db:migrate
...connecti on_adapters/mysql_adapter.rb:476:in `create_table'' C:/Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/migratio n.rb:352:in `block in method_missing'' C:/Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/migratio n.rb:328:in `block in say_with_time'' C:/Ruby19/lib/ruby/1.9.1/benchmark.rb:294:in `measure'' C:/Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/migratio n.rb:328:in `say_with_time'' C:/Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/migratio n.rb:348:in `method_missin...
2007 Feb 14
2
File into database migration
Hi, I am trying to figure out an approach to load in our initial data into our database. I have written some load_data migrations which populate a lot of the stuff, how some of the database items are images etc and I am trying to figure out how to approach added them to the database during a rake db:migrate I am thinking if I store the files in a folder off the RAILS_ROOT I should be able to
2010 Aug 23
1
Cannot migrate database, strange error!
...Zack/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/migration.rb:352:in `send'' /Users/Zack/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/migration.rb:352:in `method_missing'' /Users/Zack/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/migration.rb:328:in `say_with_time'' /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' /Users/Zack/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/migration.rb:328:in `say_with_time'' /Users/Zack/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/migration.rb:348:in `method_missing''...
2006 Jul 31
10
nothing uploads.....why? (newbie question)
Hi everybody, I know this is an easy question but I don''t seem to see the solution. I''m trying to have a user select a file so that my code can parse it and populate the database with corresponding values. So far it seems like uploads but nothing shows in my db. Can anybody give me a hand? thanks view: h1>Importing Strings<h1>
2006 Aug 04
8
Demo in rails2.pdf of add_price migration, PostgreSQL 8.1.4
...verecord-1.14.3/lib/active_record/connection_adapters/postgresql_adapter.rb:310:in `add_column'' /r/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/migration.rb:272:in `method_missing'' /r/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/migration.rb:256:in `say_with_time'' /r/lib/ruby/1.8/benchmark.rb:293:in `measure'' /r/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/migration.rb:256:in `say_with_time'' /r/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/migration.rb:270:in `method_missing'' ./db/migrate//0...
2006 May 15
11
can you explain this benchmark?
I want to load about 14000 words (a subset of /usr/share/dict/words) into a MySQL table in a migration: class CreateWords < ActiveRecord::Migration def self.up create_table :words, :force => true do |t| t.column :word, :string end say_with_time ''loading words...'' do words = File.join(RAILS_ROOT, ''db'', ''words'') Word.transaction do File.foreach(words) do |line| line.chomp! Word.create!(:word => line) end end end end...
2007 Aug 07
4
Execute additional commands after creating database?
.../activerecord/lib/ active_record/migration.rb:275:in `send'' /Users/fastjack/Sites/rpps/config/../vendor/rails/activerecord/lib/ active_record/migration.rb:275:in `method_missing'' /Users/fastjack/Sites/rpps/config/../vendor/rails/activerecord/lib/ active_record/migration.rb:259:in `say_with_time'' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' /Users/fastjack/Sites/rpps/config/../vendor/rails/activerecord/lib/ active_record/migration.rb:259:in `say_with_time'' /Users/fastjack/Sites/rpps/config/../vendor/rails/activerecord/lib/ active_record/migration.rb:273:...
2006 May 11
2
Unit tests fail with sqlite3 and rails 1.1
...14.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:196:in `add_index'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/migration.rb:272:in `method_missing'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/migration.rb:256:in `say_with_time'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/migration.rb:256:in `say_with_time'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/migration.rb:270:in `method_missing'' ./db/sche...
2006 Oct 16
6
Rails AR/Oracle Unit Test: [5310] failed (but getting better)
...apters/abstract/schema_statements.rb:104:in `create_table'' ./test/../lib/active_record/connection_adapters/oracle_adapter.rb:368:in `create_table'' ./test/../lib/active_record/migration.rb:274:in `method_missing'' ./test/../lib/active_record/migration.rb:258:in `say_with_time'' /usr/pkg/ruby184/lib/ruby/1.8/benchmark.rb:293:in `measure'' ./test/../lib/active_record/migration.rb:258:in `say_with_time'' ./test/../lib/active_record/migration.rb:272:in `method_missing'' (eval):57:in `test_load_schema'' ./test/../li...
2006 Nov 16
4
rake db:migrate problem
...ms/1.8/gems/activerecord-1.14.4/lib/active_record/migration.rb:273:in `send'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.rb:273:in `method_missing'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.rb:257:in `say_with_time'' /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.rb:257:in `say_with_time'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.rb:271:in `method_missing...
2009 Mar 09
2
rake:db:prepare Mysql::Error: #42000BLOB/TEXT column ' used in key specification without a length
...ms/1.8/gems/activerecord-1.15.3/lib/ active_record/migration.rb:275:in `send'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/migration.rb:275:in `method_missing'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/migration.rb:259:in `say_with_time'' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/migration.rb:259:in `say_with_time'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/migration.rb:273:in `method_missing...
2010 Jun 11
5
Issues creating tables in mysql tests
...s/rails/activerecord/lib/active_record/migration.rb:356:in `send'' from /Users/pupeno/Projects/rails/rails/activerecord/lib/active_record/migration.rb:356:in `method_missing'' from /Users/pupeno/Projects/rails/rails/activerecord/lib/active_record/migration.rb:332:in `say_with_time'' from /Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/benchmark.rb:293:in `measure'' from /Users/pupeno/Projects/rails/rails/activerecord/lib/active_record/migration.rb:332:in `say_with_time'' from /Users/pupeno/Projects/rails/rails/activereco...
2011 Mar 22
2
Problems with SQLite3
Hi! I''ve got a very strange problem. Suddenly the SQLite3 Backend stopped working. Example 1: > rake db:rollback == CreateProducts: reverting ================================================= -- drop_table(:products) rake aborted! An error has occurred, this and all later migrations canceled: SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE
2007 Jan 21
6
rake db:migrate "undefined method `default'" error
...usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/migration.rb:275:in `send'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/migration.rb:275:in `method_missing'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/migration.rb:259:in `say_with_time'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/migration.rb:259:in `say_with_time'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/migration.rb:273:in `method_missing'' ./db/migr...
2007 Nov 22
11
Initial run of RSpec 1.0.8 on MS-WinXPproSP2
...rd-1.15.5/lib/ active_record/migration.rb:275:in `send'' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/ active_record/migration.rb:275:in `method_missing'' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/ active_record/migration.rb:259:in `say_with_time'' C:/usr/local/bin/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/ active_record/migration.rb:259:in `say_with_time'' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/ active_record/mi...