Class: Sequel::Generators::MigrationGenerator
- Inherits:
-
Base
- Object
- Rails::Generators::NamedBase
- Base
- Sequel::Generators::MigrationGenerator
- Defined in:
- lib/generators/sequel/migration/migration_generator.rb
Instance Attribute Summary collapse
-
#column_action ⇒ Object
readonly
Returns the value of attribute column_action.
-
#migration_action ⇒ Object
readonly
Returns the value of attribute migration_action.
-
#table_action ⇒ Object
readonly
Returns the value of attribute table_action.
-
#use_change ⇒ Object
readonly
Returns the value of attribute use_change.
Instance Method Summary collapse
Methods inherited from Base
Instance Attribute Details
#column_action ⇒ Object (readonly)
Returns the value of attribute column_action.
16 17 18 |
# File 'lib/generators/sequel/migration/migration_generator.rb', line 16 def column_action @column_action end |
#migration_action ⇒ Object (readonly)
Returns the value of attribute migration_action.
16 17 18 |
# File 'lib/generators/sequel/migration/migration_generator.rb', line 16 def migration_action @migration_action end |
#table_action ⇒ Object (readonly)
Returns the value of attribute table_action.
16 17 18 |
# File 'lib/generators/sequel/migration/migration_generator.rb', line 16 def table_action @table_action end |
#use_change ⇒ Object (readonly)
Returns the value of attribute use_change.
16 17 18 |
# File 'lib/generators/sequel/migration/migration_generator.rb', line 16 def use_change @use_change end |
Instance Method Details
#create_migration_file ⇒ Object
11 12 13 14 |
# File 'lib/generators/sequel/migration/migration_generator.rb', line 11 def create_migration_file set_local_assigns! migration_template "migration.rb", "db/migrate/#{file_name}.rb" end |