Class: BetterAuth::MigrationPlan::Plan

Inherits:
Struct
  • Object
show all
Defined in:
lib/better_auth/migration_plan.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dialectObject

Returns the value of attribute dialect

Returns:

  • (Object)

    the current value of dialect



9
10
11
# File 'lib/better_auth/migration_plan.rb', line 9

def dialect
  @dialect
end

#tablesObject

Returns the value of attribute tables

Returns:

  • (Object)

    the current value of tables



9
10
11
# File 'lib/better_auth/migration_plan.rb', line 9

def tables
  @tables
end

#to_addObject

Returns the value of attribute to_add

Returns:

  • (Object)

    the current value of to_add



9
10
11
# File 'lib/better_auth/migration_plan.rb', line 9

def to_add
  @to_add
end

#to_createObject

Returns the value of attribute to_create

Returns:

  • (Object)

    the current value of to_create



9
10
11
# File 'lib/better_auth/migration_plan.rb', line 9

def to_create
  @to_create
end

#to_indexObject

Returns the value of attribute to_index

Returns:

  • (Object)

    the current value of to_index



9
10
11
# File 'lib/better_auth/migration_plan.rb', line 9

def to_index
  @to_index
end

#warningsObject

Returns the value of attribute warnings

Returns:

  • (Object)

    the current value of warnings



9
10
11
# File 'lib/better_auth/migration_plan.rb', line 9

def warnings
  @warnings
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/better_auth/migration_plan.rb', line 10

def empty?
  to_create.empty? && to_add.empty? && to_index.empty?
end