Class: SnowflakeId::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SnowflakeId::Generators::InstallGenerator
- Includes:
- ActiveRecord::Generators::Migration
- Defined in:
- lib/generators/snowflake_id/install/install_generator.rb
Constant Summary collapse
- TEMPLATES =
File.join(File.dirname(__FILE__), "templates")
Instance Method Summary collapse
Instance Method Details
#create_migration_file ⇒ Object
15 16 17 |
# File 'lib/generators/snowflake_id/install/install_generator.rb', line 15 def create_migration_file migration_template "install_snowflake_id.rb.erb", File.join(db_migrate_path, "install_snowflake_id.rb") end |