-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
I'll have to refactor my PR to use a different evolution name. Shouldn't be a problem. I suspect this is why rails uses timestamps as part of a migration name instead of just an Integer. |
Ahh, sorry - I hadn't seen that I stomped on your evolution SQL |
We should also maybe open a ticket (if you agree) about coalescing all the evolutions (perhaps at each milestone) at some point. |
import models.Channel | ||
import models.Collection | ||
import models.ContentType | ||
import models.{Agent, Channel, Collection, ContentType} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah... I'll start doing this too. Listing one per line was annoying me as I was doing it :)
I'm not sure we should change the migrations after they are merged as it may lead to confusion as to what is applied where. I'm definitely fine with a ticket to consider it further though. |
👍 |
Sorry, I didn't mean to imply altering commits. Rather, I believe it is common to express the results of applying the migrations in a single DDL file (in rails, db/schema.rb, or db/structure.sql, is it?) that is in source control, and is the deployed file when installing. My question was whether we do that once at the end of the project, or have a m1.sql, m2.sql, etc |
The In essence, I think it would be nice if Play had something like |
So you disagree with: 6.1 What are Schema Files for? Migrations, mighty as they may be, are not the authoritative source for your database schema. That role falls to either db/schema.rb or an SQL file which Active Record generates by examining the database. They are not designed to be edited, they just represent the current state of the database.There is no need (and it is error prone) to deploy a new instance of an app by replaying the entire migration history. It is much simpler and faster to just load into the database a description of the current schema. (just randomly googled: at http://edgeguides.rubyonrails.org/active_record_migrations.html) Just don't know rails best practices, sorry to be dense |
I honestly don't know how you'd use a schema file to selectively apply changes without losing the entire database in the process. |
Adds topic selections for subscribers
Fixes #151
Fixes #93