Sha256: 2fe7a261cd240ce3de8ca2848b50d7c93eae099663fe900a610405b360147e53

Contents?: true

Size: 339 Bytes

Versions: 10

Compression:

Stored size: 339 Bytes

Contents

class CreateEmailAddresses < ActiveRecord::Migration
  def self.up
    create_table :email_addresses do |t|
      t.string :spec, :null => false, :limit => 382
      t.string :name
      t.timestamps
    end
    add_index :email_addresses, [:spec, :name], :unique => true
  end
  
  def self.down
    drop_table :email_addresses
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
pluginaweek-has_emails-0.3.0 db/migrate/001_create_email_addresses.rb
has_emails-0.3.1 generators/has_emails/templates/001_create_email_addresses.rb
has_emails-0.1.2 db/migrate/001_create_email_addresses.rb
has_emails-0.1.3 db/migrate/001_create_email_addresses.rb
has_emails-0.1.4 db/migrate/001_create_email_addresses.rb
has_emails-0.1.0 db/migrate/001_create_email_addresses.rb
has_emails-0.1.1 db/migrate/001_create_email_addresses.rb
has_emails-0.3.0 db/migrate/001_create_email_addresses.rb
has_emails-0.2.1 db/migrate/001_create_email_addresses.rb
has_emails-0.2.0 db/migrate/001_create_email_addresses.rb