Sha256: 933e8db65ed816c9701c7e20f2b2649943ba698b9a51f8f7939e412f7c5061ab

Contents?: true

Size: 406 Bytes

Versions: 9

Compression:

Stored size: 406 Bytes

Contents

class CreateFormEmail < ActiveRecord::Migration
  def change
    create_table :form_emails do |t|
      t.boolean  :with_email, default: false
      t.string   :send_to

      I18n.available_locales.each do |locale|
        t.string :"subject_#{locale}"
      end

      I18n.available_locales.each do |locale|
        t.text   :"body_#{locale}"
      end

      t.timestamps null: false
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_admin_cms-0.1.1 db/migrate/20160103120544_create_form_email.rb
rails_admin_cms-0.0.9 db/migrate/20160103120544_create_form_email.rb
rails_admin_cms-0.0.7 db/migrate/20160103120544_create_form_email.rb
rails_admin_cms-0.0.6 db/migrate/20160103120544_create_form_email.rb
rails_admin_cms-0.0.5 db/migrate/20160103120544_create_form_email.rb
rails_admin_cms-0.0.4 db/migrate/20160103120544_create_form_email.rb
rails_admin_cms-0.0.3 db/migrate/20160103120544_create_form_email.rb
rails_admin_cms-0.0.2 db/migrate/20160103120544_create_form_email.rb
rails_admin_cms-0.0.1 db/migrate/20160103120544_create_form_email.rb