search for: 0001_add_a_new_table

Displaying 2 results from an estimated 2 matches for "0001_add_a_new_table".

2006 Feb 13
5
now that I have migrations working (I think I do anyway)
Do I now define database changes directly in db/migration/0001_add_a_new_table file ? Obviously the point is not to make the changes directly in postgresql db anymore right? Thanks Craig
2006 Feb 15
2
migrations still
...to drop some of the tables that have other tables which include a column from the table I am attempting to drop which would leave things in a mess. I thought I would ask anyway... Am I supposed to have each table migration in a separate file or should they all be in the same file? db/migration/0001_add_a_new_table def self_up create_table ''foo'', :force => true do |t| t.column ... end create_table ''foo2'', :force => true do |t| t.column ... end end def self_down drop_table :foo drop_table :foo2 end or multiple files? db/...