Sha256: 56b3661e3058650ca60f7c65d1f491c92b705d64c9d45b24cfe7c7959d31f7ec

Contents?: true

Size: 356 Bytes

Versions: 3

Compression:

Stored size: 356 Bytes

Contents

class AddEmailAndNumberToUser < ActiveRecord::Migration
  def change
    add_column :users, :show_email, :boolean, :default => true
    add_column :users, :show_number, :boolean, :default => true
  end

  def down
  	remove_column :users, :show_email, :boolean, :default => true
    remove_column :users, :show_number, :boolean, :default => true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pshq_engine-0.1.6 db/migrate/20150310103643_add_email_and_number_to_user.rb
pshq_engine-0.1.5 db/migrate/20150310103643_add_email_and_number_to_user.rb
pshq_engine-0.0.1 db/migrate/20150310103643_add_email_and_number_to_user.rb