Sha256: b4ef2a41e68311c7fb4e0f364d6f1291af0f54ac2cf267b191b716237e47a8b5

Contents?: true

Size: 245 Bytes

Versions: 2

Compression:

Stored size: 245 Bytes

Contents

class CreateMails < ActiveRecord::Migration
  def self.up
    create_table :mails do |t|
      t.string :name
      t.references :user
    end
    add_index :mails, :name, :unique => true
  end
 
  def self.down
    drop_table :mails
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_array-0.0.2 db/migrate/002_create_mails.rb
acts_as_array-0.0.1 db/migrate/002_create_mails.rb