Sha256: b39d6badb47e815ba94d0301f05baca1298fb8b0957727050ec6faff53258b68

Contents?: true

Size: 462 Bytes

Versions: 17

Compression:

Stored size: 462 Bytes

Contents

class AddTrackableToUser < ActiveRecord::Migration[7.0]
  def change
    add_column :users, :sign_in_count, :bigint, default: 0, null: false, if_not_exists: true
    add_column :users, :current_sign_in_at, :datetime, if_not_exists: true
    add_column :users, :last_sign_in_at, :datetime, if_not_exists: true
    add_column :users, :current_sign_in_ip, :string, if_not_exists: true
    add_column :users, :last_sign_in_ip, :string, if_not_exists: true
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
thecore_auth_commons-3.2.2 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.2.1 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.1.7 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.1.5 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.1.4 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.1.3 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.1.2 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.1.1 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.1.0 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.0.13 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.0.12 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.0.11 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.0.10 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.0.9 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.0.8 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.0.7 db/migrate/20160209152753_add_trackable_to_user.rb
thecore_auth_commons-3.0.6 db/migrate/20160209152753_add_trackable_to_user.rb