Sha256: 20bb9853173553cafd18bc5006e855bde5f333e4d477b6700d1810d79cf10333

Contents?: true

Size: 757 Bytes

Versions: 64

Compression:

Stored size: 757 Bytes

Contents

# This migration comes from dm_core (originally 20130513112751)
class CreateEmailTable < ActiveRecord::Migration
  def up
    create_table :core_system_email_translations, :force => true do |t|
      t.integer     :core_system_email_id
      t.string      :locale
      t.string      :subject
      t.text        :body
      t.datetime    :created_at
      t.datetime    :updated_at
    end

    create_table :core_system_emails, :force => true do |t|
      t.string      :email_type
      t.references  :emailable, :polymorphic => true
      t.datetime    :created_at
      t.datetime    :updated_at
      t.integer     :account_id
    end
  end

  def down
    drop_table    :core_system_emails
    drop_table    :core_system_email_translations
  end
end

Version data entries

64 entries across 64 versions & 4 rubygems

Version Path
dm_newsletter-4.2.3.10 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_forum-4.2.3.10 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_event-4.2.3.10 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_cms-4.2.3.10 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_newsletter-4.2.3.9 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_forum-4.2.3.9 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_event-4.2.3.9 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_cms-4.2.3.9 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_newsletter-4.2.3.8 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_forum-4.2.3.8 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_event-4.2.3.8 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_cms-4.2.3.8 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_newsletter-4.2.3.7 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_forum-4.2.3.7 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_event-4.2.3.7 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_cms-4.2.3.7 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_newsletter-4.2.3.6 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_forum-4.2.3.6 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_event-4.2.3.6 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb
dm_cms-4.2.3.6 spec/dummy/db/migrate/20141114170941_create_email_table.dm_core.rb