Updated

db/migrate / 20150703100716_allow_for_longer_emails_in_site.rb

A
11 lines of codes
2 methods
2.6 complexity/method
1 churn
5.2 complexity
40 duplications
class AllowForLongerEmailsInSite < ActiveRecord::Migration
  1. AllowForLongerEmailsInSite has no descriptive comment
def up
  1. Similar code found in 2 nodes Locations: 0 1
change_column :sites, :email_from, :string, limit: 100, default: '"Petitions: UK Government and Parliament" <no-reply@petition.parliament.uk>' change_column :sites, :feedback_email, :string, limit: 100, default: '"Petitions: UK Government and Parliament" <feedback@petition.parliament.uk>' end def down
  1. Similar code found in 2 nodes Locations: 0 1
change_column :sites, :email_from, :string, limit: 50, default: 'no-reply@petition.parliament.uk' change_column :sites, :feedback_email, :string, limit: 100, default: 'feedback@petition.parliament.uk' end end