by morokhovets · 10y ago · 0 comments
As of occasional (or not) data migrations, it depends on project and its history. If project is live, rapidly developed and has faced couple of pivots, migration history will reflect it.
If automated deployment is not your case I strongly recommend it. Since I first time managed autodeploy to work properly I've never looked back. It is SO convenient.
I may be wrong again about your processes and configuration :)
Executing in 3...2...1...
BEGIN TRANSACTION
-- column changes for table products
ALTER TABLE "products" ADD COLUMN "dont_email_on_purchase" boolean
-- column changes for table searches
ALTER TABLE "searches" ADD COLUMN "tag_only" boolean DEFAULT 'f'
COMMIT
--==[ COMPLETED ]==--
from the one line code change that triggered it: 1 db/schema.rb
@@ -543,6 +543,7 @@
create_table "searches", :force => true do |t|
t.text "query"
+ t.boolean "tag_only", :default => false
t.datetime "searched_at"
t.integer "user_id"
t.integer "page_id"
(well, there were two commits obviously)