Displaying 20 results from an estimated 10000 matches similar to: "change_table is not working on production server"
2011 Aug 19
0
Rails 3.1 reversible migrations and change_table
Hi,
is the following migration really supposed to be irreversible?
class AddColumnsToUsers < ActiveRecord::Migration
def change
change_table :users do |t|
t.integer :foo
t.integer :bar
end
end
end
I''m using Rails 3.1 RC6 and when trying to redo this migration I''m
getting ActiveRecord::IrreversibleMigration error.
Cheers,
Szymon
--
You received
2008 Apr 30
12
Strange memory issue
Like most, I have a test and a production env. Both are CentOS 5, Ruby
1.8.6, Rails 2.0.2, MySQL 5, and Apache. Both were setup using the
same procedure. Except for the hardware (test: Intel, prod: AMD) and
memory (test: 512M, prod: 1G), both systems are essentially the same
right down to the Rails env. Unfortunately, memory usage is very
different for each.
The test system has 2 mongrel
2008 Jul 05
4
one db - many rails projects -> many schema_migrations table
Hi all!
How can I change the name of the schema_migrations table? I have to do
this because I can only use one database but want to have several rails
projects.
I hope this is possible at all.
greets
flo schaf
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
2007 Mar 24
6
Rails Development Log
Hi,
I am using Ruby+Rails with Mongrel.
Is there any way to disable logging so that everytime I start rails
(mongrel_rails start), it doesn''t automatically start logging info to
development.log
Thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
2010 Mar 07
6
some love for migrations
I have a semi-grand plan for some changes to migrations. Mostly this
is motivated by the upcoming 3.0 release and wanting to get migrations
in engines working.
1. Don''t skip migrations with version numbers lower than "current".
I only recently tripped over this, but apparently it''s been this way
since 2.1 when we got timestamps masquerading as large/sparse
2009 Jan 08
5
There is already an object named 'schema_migrations' in the database
I''ve created a table in a SQL Server database using a migration,
successfully.
I''ve tried to change the name of a column in the table and got the
error message above when running ''rake db:migrate''.
Previously I have developed using MySQL and Sqlite and migrations have
worked successfully. This is an error I have not seen before.
Has anybody seen this and worked
2012 Jan 10
5
6 fundamental migration problems for beginners
## Hi ##
I have 6 simple and fundamental Problem in RoR migration and although I
googled it and read many article about it and research it for a week , I
didn''t understand it. please help me for these problems :
----------
1 - When I create a model (for example "rails generate model
Football_League") , I see in db/migration a "create_football_leagues.rb"
. I want
2006 Jul 28
1
Dev and production modes
Hi, I''m developing a Rails app and I''ve seen observed a different
behaviours and results when I run it in dev or in production mode. Could
you please indicate some pointers to a list of differences in
environment and things that could change between development and
production mode?
thank you.
--
Posted via http://www.ruby-forum.com/.
2010 Dec 14
4
Change primary_key column name
Hi,
after changing a primary key column name, the auto-increment information
(MySQL) and sequence (Oracle) are lost. What is the correct way to rename
primary keys?
Thanks,
Gustavo
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2009 Mar 08
1
MIgration Problem in 2.1.2
I suspect this is because it is a 1.x application which was upgraded,
but my migrations don''t "stick." If I
Coder-iMac:patton colin$ rake db:migrate
(in /Users/colin/Desktop/patton)
== 20090217193953 AddLastYearToTarget: migrating
==============================
== 20090217193953 AddLastYearToTarget: migrated (0.0001s)
=====================
== 20090222192059 AddEditorToUser:
2006 Feb 15
3
See Rails::Configuration for more options?
In config/environment.rb it states:
# See Rails::Configuration for more options
See where exactly? I can''t find any docs for it, not at
api.rubyonrails.com anyway.
Joe
--
Posted via http://www.ruby-forum.com/.
2007 Feb 18
2
SerializationTypeMismatch in Production Mode
In production mode, I keep getting this error the 2nd time it loads a
page with a serialized attribute:
ActiveRecord::SerializationTypeMismatch (answers_container was
supposed to be a Array, but was a NilClass):
/vendor/rails/activerecord/lib/active_record/base.rb:1964:in
`unserialize_attribute''
In development, it works fine. In fact, if I set to false
config.cache_classes in
2010 Jan 03
9
ferret search in production
Hi there,
after recently deploying my app, I have noticed that the search
results are not being displayed...
When I look in my app, I also notice that the apps content (search
criterea) is not being indexed, so I dont have an index folder being
created.
I read on a google post that it may be that the ferret.yml server
isn''t started (or perhaps the content of this file are not right)
I
2011 Jan 28
5
mysql quotation wonky
Why would, in an upgrade from 3.0.1 to 3.0.3, a rake db:migrate run
this:
SELECT "schema_migrations"."version" FROM "schema_migrations"
vs this ?
SELECT `schema_migrations`.`version` FROM `schema_migrations`
__ rake db:migrate output __
rake aborted!
Mysql::Error: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version
2006 Mar 11
2
Has anyone created a UAT environment to go with test, development and production?
Has anyone tried to add another environment.
When developing I develop locally, deploy to a UAT environment for
checking that my stuff fits into the organisations infrastucture and
user testing and then deploy to production.
test and production are fine. The main problem is that development (I
currently hack the the database.yml and drop the test branch to loose
some local development mocks
2012 Jun 21
2
Rails production load order giving uninitialized constant (NameError)
Hi,
I have a related but separate question. Again, please redirect me if I''m
in the wrong place.
I''ve been getting this error in production (on Heroku) only (it happens
when the application is loading):
2012-06-21T09:30:19+00:00 app[web.1]: /app/app/controllers/spree/
checkout_controller_decorator.rb:3:in `block in '': uninitialized constant
2009 Nov 03
12
Mysql::Error: query: not connected
Hi there!
I am PHP developer and trying to learn ROR. Currently I am building my
first Rails website (OS X Snow Leopard, TextMate) and decided to
switch from sqlite to mysql. After many-many hours of searching the
internet I managed to install mysql gem. Now I get this error when I
try to run rake migrations:
rake aborted!
Mysql::Error: query: not connected: CREATE TABLE `schema_migrations`
2006 Mar 31
5
Model reloading problem
Hi all,
I''ve a model class Toto in the model directory.
I don''t understand why i have to restarts WebBrick to view changes i make
in this class
FYI : in the development. rb i desabled class cache with
config.cache_classes = false
Regards
Luciano
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
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".