Class: MerchantSidekick::Install

Inherits:
Rails::Generators::Base
  • Object
show all
Extended by:
ActiveRecord::Generators::Migration
Includes:
Rails::Generators::Migration
Defined in:
lib/merchant_sidekick/install.rb

Instance Method Summary collapse

Instance Method Details

#copy_files(*args) ⇒ Object

Copies the migration template to db/migrate.



12
13
14
15
16
# File 'lib/merchant_sidekick/install.rb', line 12

def copy_files(*args)
  migration_template 'billing.rb', 'db/migrate/create_merchant_sidekick_billing_tables.rb'
  migration_template 'shopping_cart.rb', 'db/migrate/create_merchant_sidekick_shopping_cart_tables.rb'
  migration_template 'addressable.rb', 'db/migrate/create_merchant_sidekick_addressable_tables.rb'
end