Sha256: 4610f948ce1170fcfa721cea61e8ce424451a5772962db6e2dbdb1267628a54b

Contents?: true

Size: 255 Bytes

Versions: 1

Compression:

Stored size: 255 Bytes

Contents

class BentoCreateAccounts < ActiveRecord::Migration
  def self.up
    create_table :accounts do |t|
      t.string :name
      t.timestamps
    end

    add_index :accounts, :name, :unique => true
  end

  def self.down
    drop_table :accounts
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bento-0.0.3 spec/rails_app/db/migrate/20101015094514_bento_create_accounts.rb