Sha256: 1cfddf6bae2d0744b5105e23083928dcd6c24d21c5d6d43eb54934971ad2aff1

Contents?: true

Size: 887 Bytes

Versions: 3

Compression:

Stored size: 887 Bytes

Contents

class CreateMembers < ActiveRecord::Migration
  def change
    create_table :members do |t|
      t.belongs_to :user,                  index: true
      t.belongs_to :organization,          index: true
      t.boolean    :email_notify,          default: true
      t.boolean    :sms_notify,            default: true
      t.integer    :vacation_id
      t.integer    :time_off_limit
      t.boolean    :in_train 
      t.integer    :reminder_time
      t.date       :termination_date
      t.integer    :request_weekly_hours
      t.integer    :priority,              default: 0
      t.boolean    :show_email,            default: true
      t.boolean    :show_number,           default: true
      t.integer    :invited_by_id
      t.datetime   :invitation_sent_at
      t.datetime   :invitation_accepted_at
      t.timestamps
    end
  end

  def down
    drop_table :members
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pshq_engine-0.1.6 db/migrate/20150614215015_create_members.rb
pshq_engine-0.1.5 db/migrate/20150614215015_create_members.rb
pshq_engine-0.0.1 db/migrate/20150614215015_create_members.rb