search for: usingmigrations

Displaying 7 results from an estimated 7 matches for "usingmigrations".

2006 May 22
1
Active Record Migrations -> Table Relations
Hi there ! I am currently investingation ROR. I really like the idea of specifying my database schema via Migrations, but one questions came to my mind. How does one specify Table relations in the migration ? 1. There is a fancy way of doing it with Active Records. 2. I just add manually some Integer ID columns etc... and lateron add the Foreign Key semantic via SQL.. Which one of the above
2006 Mar 27
3
Migration commands -- create a SQL Server production DB?
Hallo -- could anyone tell me how I use Migrations (which my existing development schema is implemented with) to create the production database for deployment? The target DB is a SQL Server database -- I don''t know if that''s an issue -- I seem to remember reading that SQL Server is supported now. Oh, yeah -- SQL Server was *not* my choice! But what I seem totally unable to
2007 Aug 02
1
Foreign Key Use
Hi can any1 guide me ,How can i use foreign Key concept in rails, I m using Migrations to create tables, Also i want to know diffrent fields we can use while creating tables. I mean like String,Date time, timestamp,,,,Plz tell me various fields so that i can Make proper use of them as per requirement. Thank u in advance -- Posted via http://www.ruby-forum.com/.
2006 Apr 03
2
HABTM migrations
Bad rails day for Matt- In a migration, for a habtm: create_table :teams_users do |t| t.column :team_id, :integer t.column :user_id, :integer end Ok, fine. In a controller (well really a migration script): @user.teams << Team.find( 3 ) And the SQL pumped at my server is: INSERT INTO teams_users (`team_id`, `id`, `user_id`) VALUES (3, 3, 34) Which
2006 Jul 13
4
Regenerate DB
Hi again :), I''m playing with migrations. I''ve created some migrations classes and with rake db:migrate the tables are created and altered fine, but then I dropped some of the tables and when I run db:migrate command again I don''t get tables being re-created. What am I doing wrong? Is there a way to run db:migration in order to drop the tables? -- Posted via
2007 Jan 20
3
Making tables with SQLight
Hi, Im using locomotive and running SQLight. Im confused about making tables with sqlight. Im following the depot example from ''agile web development with rails''. When trying to make the table ''products'' is there a difference when using SQLight rather than MySQL? Here is the DDL for MySQL, how do I make this table with SQLight? - drop table if exists
2006 Mar 28
8
Large Database with lots of tables
Hello all, I am a rails nuby and I am evaluating using Rails for a new web application. The application will have a large number of tables (>70) that will basically mimic a large collection of paper forms that user would otherwise have to fill out. From what I have read on rails thus far it seems I would have to create a lot of models and form templates. Is this common and if so does