Sha256: 444e0131fd3452e43d63f66082fb8bc960e39440571d264cd5e05c08bddd3b1a

Contents?: true

Size: 229 Bytes

Versions: 1

Compression:

Stored size: 229 Bytes

Contents

class Sqlite3RepresentBooleanAsInteger < ActiveRecord::Migration[5.2]
  def change
    AdminUser.where("super_admin = 't'").update_all(super_admin: 1)
    AdminUser.where("super_admin = 'f'").update_all(super_admin: 0)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_admin-workflow-0.1.0 spec/dummy/db/migrate/20190606153623_sqlite3_represent_boolean_as_integer.rb