Sha256: 917bde926bf47d1403a745fc61486ff0735e21def0995cc981441b7e54f3b3ab

Contents?: true

Size: 541 Bytes

Versions: 4

Compression:

Stored size: 541 Bytes

Contents

# This migration comes from office (originally 20131224171442)
class Clerks < ActiveRecord::Migration
  def change
    create_table(:clerks) do |t|
      t.string :email,              :null => false, :default => ""
      t.boolean :admin , :default => false
      t.string :encrypted_password
      t.string :password_salt

      #this is a json attribute, so anything can be added to the class easily
      t.string  :address
      t.timestamps :null => false
    end
    add_index :clerks, :email,                :unique => true
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
post_clerk-0.6 test_app/db/migrate/20141114205525_clerks.office.rb
accountant_clerk-0.8 test_app/db/migrate/20141114205525_clerks.office.rb
post_clerk-0.5 test_app/db/migrate/20141114205525_clerks.office.rb
accountant_clerk-0.7 test_app/db/migrate/20141114205525_clerks.office.rb