Sha256: 0cac3eebfc68959f85be6f45fa70a91631e472d702cb6054d2534a6c22a14717

Contents?: true

Size: 884 Bytes

Versions: 7

Compression:

Stored size: 884 Bytes

Contents

class IncreaseEmailTo254Chars < ActiveRecord::Migration
  def up
    change_column :accounts, :email, :string, limit: 254
    change_column :contacts, :email, :string, limit: 254
    change_column :contacts, :alt_email, :string, limit: 254
    change_column :leads, :email, :string, limit: 254
    change_column :leads, :alt_email, :string, limit: 254
    change_column :users, :email, :string, limit: 254
    change_column :users, :alt_email, :string, limit: 254
  end

  def down
    change_column :accounts, :email, :string, limit: 64
    change_column :contacts, :email, :string, limit: 64
    change_column :contacts, :alt_email, :string, limit: 64
    change_column :leads, :email, :string, limit: 64
    change_column :leads, :alt_email, :string, limit: 64
    change_column :users, :email, :string, limit: 64
    change_column :users, :alt_email, :string, limit: 64
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 db/migrate/20141126031837_increase_email_to254_chars.rb
fat_free_crm-0.14.1 db/migrate/20141126031837_increase_email_to254_chars.rb
fat_free_crm-0.15.0.beta.2 db/migrate/20141126031837_increase_email_to254_chars.rb
fat_free_crm-0.15.0.beta db/migrate/20141126031837_increase_email_to254_chars.rb
fat_free_crm-0.14.0 db/migrate/20141126031837_increase_email_to254_chars.rb
reduced_fat_crm-0.15.0.beta db/migrate/20141126031837_increase_email_to254_chars.rb
reduced_fat_crm-0.14.0 db/migrate/20141126031837_increase_email_to254_chars.rb