Sha256: 9d11d29d539635d03b271503efeacd81bfa8758a4e2d37e344479ab49a2d5c37
Contents?: true
Size: 719 Bytes
Versions: 1
Compression:
Stored size: 719 Bytes
Contents
# This migration comes from spree_id_verification (originally 20200828144231) class AddStatusToUsers < ActiveRecord::Migration[5.1] def up # unless Rails.env.test? # execute <<-SQL # CREATE TYPE spree_user_status AS ENUM ('pending', 'rejected', 'verified'); # SQL # add_column :spree_users, :status, :spree_user_status, default: 'pending' # add_index :spree_users, :status # else add_column :spree_users, :status, :integer # end end def down # unless Rails.env.test? # remove_column :spree_users, :status # execute <<-SQL # DROP TYPE spree_user_status; # SQL # else remove_column :spree_users, :status # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_id_verification-0.0.1.alpha | db/migrate/20200828144231_add_status_to_users.rb |