Class: Hayfork::Generators::CreateOrReplaceMigration

Inherits:
Rails::Generators::Actions::CreateMigration
  • Object
show all
Defined in:
lib/generators/hayfork/rebuild_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(base, destination, data, config = {}) ⇒ CreateOrReplaceMigration

Returns a new instance of CreateOrReplaceMigration.



8
9
10
11
# File 'lib/generators/hayfork/rebuild_generator.rb', line 8

def initialize(base, destination, data, config = {})
  config[:force] = true
  super
end

Instance Method Details

#identical?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/generators/hayfork/rebuild_generator.rb', line 13

def identical?
  false
end