Sha256: 9a2fbbb22e3c11627c9b92809b168fc8d0c31cec0a9917836dc55d98f208e9f0

Contents?: true

Size: 351 Bytes

Versions: 6

Compression:

Stored size: 351 Bytes

Contents

class DeviseSafeguardAddToUsers < ActiveRecord::Migration
  def self.up
    change_table :users do |t|
      t.datetime  :last_sign_in_with_safeguard
      t.boolean   :safeguard_enabled, :default => false
    end

  end

  def self.down
    change_table :users do |t|
      t.remove :last_sign_in_with_safeguard, :safeguard_enabled
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
safeguard-devise-0.0.7 spec/safeguard-devise-test-app/db/migrate/20140220191522_devise_safeguard_add_to_users.rb
safeguard-devise-0.0.6 spec/safeguard-devise-test-app/db/migrate/20140220191522_devise_safeguard_add_to_users.rb
safeguard-devise-0.0.5 spec/safeguard-devise-test-app/db/migrate/20140220191522_devise_safeguard_add_to_users.rb
safeguard-devise-0.0.4 spec/safeguard-devise-test-app/db/migrate/20140220191522_devise_safeguard_add_to_users.rb
safeguard-devise-0.0.3 spec/safeguard-devise-test-app/db/migrate/20140220191522_devise_safeguard_add_to_users.rb
safeguard-devise-0.0.2 spec/safeguard-devise-test-app/db/migrate/20140220191522_devise_safeguard_add_to_users.rb