Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C chouette-core-tmp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • chouette-core-tmp
  • Wiki
  • Rails migrations

Rails migrations · Changes

Page history
Rails migrations: Translate to English authored Apr 03, 2018 by Teddy Wing's avatar Teddy Wing
Show whitespace changes
Inline Side-by-side
Showing with 2 additions and 3 deletions
+2 -3
  • Rails-migrations.md Rails-migrations.md +2 -3
  • No files found.
Rails-migrations.md
View page @ 1225b41d
## Ajout d'une extension PostgreSQL
## Adding a PostgreSQL extension
Il faut tester lors de l'ajout d'une extension PostgreSQL si elle est déjà présente ou pas.
Car sur nos serveurs de développement, intégration ou production ce sera fait par d'autres biais que les migrations.
When modifying Postgres extensions, these queries must be wrapped in an `EXISTS` condition. We do this because our development, integration, and production servers get their extensions added outside of the Rails migration system. Without checking for `EXISTS`, these migrations would fail.
```ruby
class EnableUnaccentExtension < ActiveRecord::Migration
......
Clone repository
  • Class Diagram
  • Data Models
  • Home
  • Optional Features
  • Rails Controller
  • Rails I18n
  • Rails migrations
  • Rails models
  • Rails spec
  • Rails views
  • Seed database