Adds migration for Conference Registration Dates to Email Settings
This commit is contained in:
parent
861c1af729
commit
c16d76c9b8
3 changed files with 18 additions and 7 deletions
|
|
@ -5,7 +5,8 @@ class EmailSettings < ActiveRecord::Base
|
||||||
:registration_subject, :accepted_subject, :rejected_subject,
|
:registration_subject, :accepted_subject, :rejected_subject,
|
||||||
:confirmed_without_registration_subject,
|
:confirmed_without_registration_subject,
|
||||||
:send_on_updated_conference_dates, :updated_conference_dates_subject,
|
:send_on_updated_conference_dates, :updated_conference_dates_subject,
|
||||||
:updated_conference_dates_template
|
:updated_conference_dates_template, :send_on_updated_conference_registration_dates,
|
||||||
|
:updated_conference_registration_dates_subject, :updated_conference_registration_dates_template
|
||||||
|
|
||||||
def get_values(conference, user, event = nil)
|
def get_values(conference, user, event = nil)
|
||||||
h = {
|
h = {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
class AddConferenceRegistrationDatesUpdatesToEmailSettings < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :email_settings, :send_on_updated_conference_registration_dates, :boolean, default: true
|
||||||
|
add_column :email_settings, :updated_conference_registration_dates_subject, :string
|
||||||
|
add_column :email_settings, :updated_conference_registration_dates_template, :text
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20140714141156) do
|
ActiveRecord::Schema.define(version: 20140710130608) do
|
||||||
|
|
||||||
create_table "ahoy_events", force: true do |t|
|
create_table "ahoy_events", force: true do |t|
|
||||||
t.uuid "visit_id"
|
t.uuid "visit_id"
|
||||||
|
|
@ -167,6 +167,9 @@ ActiveRecord::Schema.define(version: 20140714141156) do
|
||||||
t.boolean "send_on_updated_conference_dates", default: true
|
t.boolean "send_on_updated_conference_dates", default: true
|
||||||
t.string "updated_conference_dates_subject"
|
t.string "updated_conference_dates_subject"
|
||||||
t.text "updated_conference_dates_template"
|
t.text "updated_conference_dates_template"
|
||||||
|
t.boolean "send_on_updated_conference_registration_dates", default: true
|
||||||
|
t.string "updated_conference_registration_dates_subject"
|
||||||
|
t.text "updated_conference_registration_dates_template"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "event_attachments", force: true do |t|
|
create_table "event_attachments", force: true do |t|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue