Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add short-hand methods for text and blob types in MySQL #21688

Merged

Commits on Jan 5, 2016

  1. Add short-hand methods for text and blob types in MySQL

    In Pg and Sqlite3, `:text` and `:binary` have variable unlimited length.
    But in MySQL, these have limited length for each types (ref rails#21591, rails#21619).
    This change adds short-hand methods for each text and blob types.
    
    Example:
    
        create_table :foos do |t|
          t.tinyblob   :tiny_blob
          t.mediumblob :medium_blob
          t.longblob   :long_blob
          t.tinytext   :tiny_text
          t.mediumtext :medium_text
          t.longtext   :long_text
        end
    kamipo committed Jan 5, 2016
    Copy the full SHA
    4d4239f View commit details
    Browse the repository at this point in the history