Class: Sequel::Generators::MigrationGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/sequel/migration/migration_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Attribute Details

#column_actionObject (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_actionObject (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_actionObject (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_changeObject (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_fileObject



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