Project

General

Profile

Actions

Refactor #14025

closed

Specify string column limits

Added by David Davis about 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Branch:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

In Rails 4.2 the default limit for PostgreSQL and SQLite adapters
changes to unlimited from 255 characters. MySQL remains at 255 chars.
Existing migrations should be changed to specify the length, e.g.

t.column :name, :string, :null => false, :limit => 255

This will ensure that the schema generated on a new installation exactly
matches the schema from an old installation, so there won't be varying
versions of the schema in the wild.


Related issues 1 (0 open1 closed)

Related to Foreman - Refactor #13897: Explicitly set :limit on all DB migrations adding string columnsClosedDominic Cleal02/25/2016Actions
Actions #1

Updated by David Davis about 8 years ago

  • Related to Refactor #13897: Explicitly set :limit on all DB migrations adding string columns added
Actions #2

Updated by David Davis about 8 years ago

  • Tracker changed from Bug to Refactor
Actions #3

Updated by David Davis about 8 years ago

  • Assignee set to David Davis
Actions #4

Updated by David Davis about 8 years ago

  • Category set to 81
Actions #5

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5837 added
Actions #6

Updated by David Davis about 8 years ago

  • translation missing: en.field_release set to 86
Actions #7

Updated by Partha Aji about 8 years ago

  • Bugzilla link set to 1314519
Actions #8

Updated by David Davis about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF