similar to: Support for foreign keys in Migrations

Displaying 20 results from an estimated 700 matches similar to: "Support for foreign keys in Migrations"

2006 Jan 10
14
Not wishing to instigate a DB war, but...
Can I get some opinions on which free DB to use with rails for a virtual server that will eventually be doing lots of heavy database lifting? Not a lot of heavy duty querying per se. Think multiple simultaneous forums and blog sites and the like. I know each of the different DB possibilities such as MySQL and PostgreSQL has plus points and minus points. I''m particularly interested
2005 Jun 27
9
FK constraints overrated?
Hello folks, I use to think that a relational databases without foreign keys constraints enforced strictly by the RDBMS were no good, piece of crap, data junk. However, I''ve also learned the hard way that FKs constraints imposes serious difficulties when moving data around, specially between different DBs, or for loading test data or for upgrading DBs schemas, or for porting DBs
2006 Feb 20
5
find(:all) vs find_all
I started with Ruby on Rails in the 0.13.x period, so I''m sure I missed out on a lot of history. There''s probably some good explanation for something I''ve been wondering about, but I haven''t seen it written down anywhere. Maybe someone can clue me in. I''ve always felt that one of the uglier APIs was the ActiveRecord::find() method. I call
2006 May 18
5
[OT] Best Blog + Wiki opinions?
Hello all, I''m looking for suggestions for integrated Blog + Wiki (Bliki) apps. I''d prefer Rails, I want to hear opinions on all options! I''ve browsed through W:Bliki <http://en.wikipedia.org/wiki/Bliki>. Nothing in that list is immediately compelling. This is for my wife, who is not a technologist, and has a need to create a information-centric website.
2006 Jan 02
11
aligning Ferret''s IndexSearcher.search API with Lucene''s
Recently I''ve been revisiting some of my search code. With a greater understanding of how Java Lucene implements its search methods, I realized that one level of abstraction is not present in the Ferret classes/methods. Here are the relevant method signatures: Ferret''s search methods: in Ferret::Index::Index: search(query, options = {}) -> returns a TopDocs
2005 Jan 13
10
Program logic behind Ruby On Rails
Hi, I''m a newbie in both Ruby and Ruby on Rails. I finished the Ruby on Rail Tutorial on Todo list and it was great. But, now I''m trying to understand the logic behind it, that is something that is not obvious on how each one of them ties together. Is there a flowchart that shows how the inner working of Ruby on Rails? In another words, let''s suppose we consider the
2006 Aug 13
10
does rails enforce referential integrity???
Hi, Is rails supposed to support referential integrity? That is rails either support to be able to ensure that when a new contact is created this can only happen if a valid suberb is associated with it, and which mechanisms of the below are supposed to do this? (a) using DB foreign key constraints information as a basis? (b) using the "has_one" line in the model file to enfore? If
2006 Jun 05
2
Class Table Inheritance implementation
I know that Rails uses the Single-Table Inheritance as mentioned in the wiki (http://wiki.rubyonrails.com/rails/pages/SingleTableInheritance). I was wondering if there was an easy way of implementing Class Table Inheritance easily (one table per class) as defined in http://www.martinfowler.com/eaaCatalog/classTableInheritance.html. The model that I am used to is Class Table Inheritance, and
2008 Feb 02
9
deep test with rspec?
All, Has anyone on this list tried to use DeepTest[1] with rspec? My initial attempts have failed so I would be really interested if someone has figured it out. Thanks. -Ben 1. http://www.somethingnimble.com/bliki/deep-test
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
2007 May 24
9
Mocking, changing method interfaces and integration tests
Suppose we have a method ''foo'' which internally uses another method ''bar''. Being good BDDers we mock out the ''bar'' method. After all, we only want to spec the ''foo'' method - actually running the ''bar'' method means slower, less maintainable and brittler specs. That''s why we <3 mocking,
2007 Feb 05
10
how does Mocha compare in terms of classical vs mock-based testing, and stubbing???
Hi guys, I''ve just been reading Martin Fowler''s article re mock versus stubbing<http://martinfowler.com/articles/mocksArentStubs.html>where he compares traditional TDD testing techniques with mock based testing. I''d be interested in comments from a ruby on rails perspective in terms of this and Mocha? For example: a) Do you see Mocha as a robust way to test Ruby
2006 Mar 05
9
Rails Development on a Mac Mini?
How many people out there are doing Rails development on a Mac Mini? I''ve been eyeing up the MacBook as well as the new MacMini trying to decide if I want to splurge. I''ve been doing very little Rails development thus far which makes the investment a little hard to justify. The Free Mini Mac ( http://minimacs.freepay.com/?r=16778073) offer seems like the best route but
2006 Jul 10
3
Can migrations set up foreign key references?
I use Oracle and i really want to use migrations, but there seems to be no way to setup foreign key constraints. Is this true? If it is then doesn''t that make migrations useles with Oracle? Thanks Chris -- Posted via http://www.ruby-forum.com/.
2007 Jun 21
3
only checking certain parameters for a method
I''m writing a test where I only care about one of the parameters being sent to the method, does anyone think having a way to say that any value for a parameter which I don''t care about is valid? I''m thinking something like: def test_charge_is_for_10_bucks gateway = test_gateway member = Member.new member.credit_card_number = "1"
2011 Jun 11
1
Having a problem adding a foreign key
I keep getting this exception "SQLite3::SQLException: no such column: books.user_id: SELECT "books".* FROM "books" WHERE ("books".user_id = 4)" ,which sounds like there is no user_id in books table.So i just installed foreigner plugin and added " t.integer :user_id, :null => false" and "add_foreign_key(:books, :users)" in book
2012 Jan 10
3
ices2 memory leak on Debian/ARM (The Darkener)
Hi Keith, As I explained before, Valgrind won't run in my arch. I'll Google for some other memory leak detection tools, however. Thank you for your input...I look forward to helping fix this bug! - Jordan On 01/10/2012 07:43 AM, Keith Roberts wrote: > *snip* > There's a Linux memory profiler called: > > "Valgrind" is a multipurpose code profiling and memory
2006 Feb 17
1
foreign key support in mysql adapter
Hi! I''m using Migration to define my database schema and these "ALTER TABLE t ADD FOREIGN KEY..." look really ugly - that''s why I wanted to ask it would be possible to simply add add_foreign_key method to ActiveRecord? Are there any reasons this isn''t yet implemented? Greetings, Esad -- Posted via http://www.ruby-forum.com/.
2010 Apr 27
4
Icecast Server doesnt work.
I am very new on this list, so that I will first say hello to everybody. I been this morning on the IRC and some guy there explained me that if I want real help I must pay him 60 euros pe hour. I hope you dont charge me 60 euros for readiung this email and giving a hint. I have tryed to install icecast2 and ices2 on my dedicated server and followed allthe steps described on your site. in the end
2020 Jul 08
1
samba-pdb-mysql, samba-pdbsql
Dar all, recently I installed Samba and I found the documentation of Mr Jelmers MySQL back-end I found the source Packages on Sourceforge but I am not sure how to use them, If I need to place this in the samba sources and recompile samba. I was wondering if there are some compiled packages somewhere as I do not have experience in compiling and do not have a test environment. Maybe someone can