Newer
Older
dmpopidor / db / migrate / 20180713164120_add_length_constraints_to_users_email.rb
@Bodacious Bodacious on 1 Aug 2018 260 bytes Update DB schema for MySQL support
class AddLengthConstraintsToUsersEmail < ActiveRecord::Migration
  def up
    change_column :users, :email, :string, default: "", null: false, limit: 80
  end
  def down
    change_column :users, :email, :string, default: "", null: false, limit: nil
  end
end