Skip to content
Snippets Groups Projects
Verified Commit 9d3f27a2 authored by Yorick Peterse's avatar Yorick Peterse
Browse files

Removed commit guidelines for migrations

At some point we decided this isn't really necessary, so let's get rid
of it.
parent ea2d0c48
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -35,13 +35,6 @@ Please don't depend on GitLab-specific code since it can change in future
versions. If needed copy-paste GitLab code into the migration to make it forward
compatible.
 
## Commit Guidelines
Each migration **must** be added in its own commit with a descriptive commit
message. If a commit adds a migration it _should only_ include the migration and
any corresponding changes to `db/schema.rb`. This makes it easy to revert a
database migration without accidentally reverting other changes.
## Downtime Tagging
 
Every migration must specify if it requires downtime or not, and if it should
Loading
Loading
@@ -224,9 +217,9 @@ add_column(:projects, :foo, :integer, default: 10, limit: 8)
 
## Timestamp column type
 
By default, Rails uses the `timestamp` data type that stores timestamp data without timezone information.
The `timestamp` data type is used by calling either the `add_timestamps` or the `timestamps` method.
Also Rails converts the `:datetime` data type to the `timestamp` one.
By default, Rails uses the `timestamp` data type that stores timestamp data without timezone information.
The `timestamp` data type is used by calling either the `add_timestamps` or the `timestamps` method.
Also Rails converts the `:datetime` data type to the `timestamp` one.
 
Example:
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment