Create 201505312045_rename_email_settings.rb
Refactoring of email_settings for #603
This commit is contained in:
parent
b15c1abd2e
commit
1ba26fd111
1 changed files with 19 additions and 0 deletions
19
db/migrate/201505312045_rename_email_settings.rb
Normal file
19
db/migrate/201505312045_rename_email_settings.rb
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
class FixColumnNames < ActiveRecord::Migration
|
||||
def up
|
||||
change_table :email_settings do |t|
|
||||
t.rename :registration_email_template, :registration_body
|
||||
t.rename :accepted_email_template, :accepted_body
|
||||
t.rename :rejected_email_template, :rejected_body
|
||||
t.rename :confirmed_email_template, :confirmed_body
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
change_table :email_settings do |t|
|
||||
t.rename :registration_body, :registration_email_template
|
||||
t.rename :accepted_body, :accepted_email_template
|
||||
t.rename :rejected_body, :rejected_email_template
|
||||
t.rename :confirmed_body, :confirmed_email_template
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue