Sha256: 8a74852a5fe6e96c67b17271911bb9500fe8ef2fa39628faa27cd2c185623b44

Contents?: true

Size: 273 Bytes

Versions: 2

Compression:

Stored size: 273 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :username
      t.string :password
      t.string :email
      t.timestamps
    end

    add_index :users, :username
    add_index :users, :email, unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active-record-transactioner-0.0.7 spec/dummy/db/migrate/20141203180942_create_users.rb
active-record-transactioner-0.0.6 spec/dummy/db/migrate/20141203180942_create_users.rb