search for: fnamespac

Displaying 6 results from an estimated 6 matches for "fnamespac".

Did you mean: namespac
2006 May 11
4
Legacy database problem
..._table_names = false In class Product, I''ve added set_table_name "Products" however, if I try to list all the elements in the Products table (@products = Product.find(:all)) , I have the following error: RuntimeError: ERROR C42P01 Mrelation "products" does not exist Fnamespace.c L200 RRangeVarGetRelid: SELECT * FROM Products but when I create another table with name "products", it worked fine. Is there any way to solve this problem? Thank you very much! -- Posted via http://www.ruby-forum.com/.
2006 Sep 01
2
Mrelation does not exists
Hello! I''m having the following error: RuntimeError: ERROR C42P01 Mrelation "subjects_users_id_seq" does not exist Fnamespace.c L200 RRangeVarGetRelid: SELECT currval (''subjects_users_id_seq'') when I try to do: subject= SubjectsUser.new(params[:subjects_user]) subject.save The models: class User < ActiveRecord::Base has_one :last_entrie has_one :address_book has_and_belongs_to_many :subjects...
2006 Aug 08
2
Testing Inconsistencies - ruby works rake fails
...ilename.rb> each of the tests pass. If I run => rake test_units I get several failures, and they all have to deal with the same issue. For instance I''m getting => ActiveRecord::StatementInvalid: RuntimeError: ERROR C42P01 Mrelation "customers" does not exist Fnamespace.c L200 RRangeVarGetRelid: DELETE FROM customers Obviously I''ve checked and the customers table exists, and as I mentioned above, when I run => ruby test\unit\customer_test.rb all tests succeed. So I''m guessing there is something wrong with the way rake is loading up th...
2006 Jul 20
4
Help with Rails and postgres with sequence numbers (global?)
...(global for some tables). I can not change the schema and still I want to use Rails to access it and not pure SQL. When I try to insert a record I get the following message: ActiveRecord::StatementInvalid: RuntimeError: ERROR C42P01 Mrelation "parts group_id_seq" does not exist Fnamespace.c L200 RRangeVarGetRelid: SELEC T currval(''partsgroup_id_seq'') This is of course true, because of the global sequence.I did look into the postgres_adapter and found pk_and_sequence_for but I am only understanding nada. ;-) schema: lxtest=# \d partsgroup...
2008 Nov 14
3
migration with data
...values like 100 Category1 101 Category2 102 Category3 But if I just migrate two migrations at once I get error -- execute("ALTER SEQUENCE categories_id_seq RESTART WITH 100;") rake aborted! RuntimeError: ERROR C42P01 Mrelation "categories_id_seq" does not exist Fnamespace.c L273 RRangeVarGetRelid: ALTER SEQUENCE categories_id_seq RESTART WITH 100; Could you please tell why this happens? Thanks in advance Sijo -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are sub...
2006 May 12
0
Using primary key that is not named "id"
...tID", is added to the Product class Then I used >ruby script/generate scaffold Product Admin to generate my controllers. When I try to insert a new product in the products table, it gave me this error RuntimeError: ERROR C42P01 Mrelation "product_productid_seq" does not exist Fnamespace.c L195 RRangeVarGetRelid: SELECT currval(''Product_ProductID_seq'') What does this mean and is what can I do to solve this? Thank you! -- Posted via http://www.ruby-forum.com/.