Sha256: 11ab455f32a1db7ab6f71dbdaccf2de7e52c57f1f11295950b719c87ab1dffc9

Contents?: true

Size: 435 Bytes

Versions: 20

Compression:

Stored size: 435 Bytes

Contents

class CreateActiveMailerTables < ActiveRecord::Migration
  def self.up
    create_table :email_users do |t|
      t.string :email_address
      t.timestamps
    end

    create_table :email_user_associations do |t|
      t.references :email_user
      t.string :emailable_type
      t.integer :emailable_id
      t.timestamps
    end
  end

  def self.down
    drop_table :email_users
    drop_table :email_user_associations
  end
end

Version data entries

20 entries across 10 versions & 1 rubygems

Version Path
active_mailer-1.1.0 test/fixtures/rails_5.1.7/db/migrate/20130220212407_create_active_mailer_tables.rb
active_mailer-1.1.0 lib/generators/active_mailer/install/templates/migration.rb
active_mailer-1.0.0 test/fixtures/dummy/db/migrate/20130220212407_create_active_mailer_tables.rb
active_mailer-1.0.0 lib/generators/active_mailer/install/templates/migration.rb
active_mailer-0.0.10 lib/generators/active_mailer/install/templates/migration.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/db/migrate/20130220212407_create_active_mailer_tables.rb
active_mailer-0.0.9 lib/generators/active_mailer/install/templates/migration.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/db/migrate/20130220212407_create_active_mailer_tables.rb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/db/migrate/20130220212407_create_active_mailer_tables.rb
active_mailer-0.0.8 lib/generators/active_mailer/install/templates/migration.rb
active_mailer-0.0.7 lib/generators/active_mailer/install/templates/migration.rb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/db/migrate/20130220212407_create_active_mailer_tables.rb
active_mailer-0.0.6 lib/generators/active_mailer/install/templates/migration.rb
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/db/migrate/20130220212407_create_active_mailer_tables.rb
active_mailer-0.0.5 lib/generators/active_mailer/install/templates/migration.rb
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/db/migrate/20130220212407_create_active_mailer_tables.rb
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/db/migrate/20130220212407_create_active_mailer_tables.rb
active_mailer-0.0.4 lib/generators/active_mailer/install/templates/migration.rb
active_mailer-0.0.3 test/fixtures/dummyapp_rails_3.2/db/migrate/20130220212407_create_active_mailer_tables.rb
active_mailer-0.0.3 lib/generators/active_mailer/install/templates/migration.rb