Sha256: 3d306b4becd73967cfc4592cb169298d1c015b25c11b67c28ddc17cf9c6dacdd

Contents?: true

Size: 494 Bytes

Versions: 3

Compression:

Stored size: 494 Bytes

Contents

#---
# Excerpted from "Agile Web Development with Rails, 2nd Ed."
# We make no guarantees that this code is fit for any purpose. 
# Visit http://www.pragmaticprogrammer.com/titles/rails2 for more book information.
#---
class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.column :name,            :string
      t.column :hashed_password, :string
      t.column :salt,            :string
    end
  end

  def self.down
    drop_table :users
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
amrita2-2.0.0 sample/depot/db/migrate/007_create_users.rb
amrita2-2.0.1 sample/depot/db/migrate/007_create_users.rb
amrita2-2.0.2 sample/depot/db/migrate/007_create_users.rb