Sha256: 6fcfa94b10cd63f601c7dd64768fd18ae9b32db7ab33eff6386eaca681daf9e9

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

class CreateSwaps < ActiveRecord::Migration
  def change
    create_table :swaps do |t|
      t.integer :shift_id
      t.string :reason
      t.string :status, :default => 'pending'
      t.boolean :in_trash, :default => false
      t.boolean :viewed, :default => false
      t.boolean :alert,:default => false
      t.datetime  :approved_date
      t.integer :approved_by

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pshq_engine-0.1.6 db/migrate/20140302153059_create_swaps.rb
pshq_engine-0.1.5 db/migrate/20140302153059_create_swaps.rb
pshq_engine-0.0.1 db/migrate/20140302153059_create_swaps.rb