Sha256: c51acdc9e0f0adc0d5ab92f51c39b3c563dc5d449bd559154268676a05fdc221

Contents?: true

Size: 644 Bytes

Versions: 11

Compression:

Stored size: 644 Bytes

Contents

require "rails/generators/active_record/migration"

class Flip::MigrationGenerator < Rails::Generators::Base
  include Rails::Generators::Migration

  source_root File.expand_path("../templates", __FILE__)

  def create_migration_file
    migration_template "create_features.rb", "db/migrate/create_features.rb"
  end

  # Stubbed in railties/lib/rails/generators/migration.rb
  #
  # This implementation a simplified version of:
  #   activerecord/lib/rails/generators/active_record/migration.rb
  #
  # See: http://www.ruby-forum.com/topic/203205
  def self.next_migration_number(dirname)
    Time.now.utc.strftime("%Y%m%d%H%M%S")
  end

end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
flip-0.2.1 lib/generators/flip/migration/migration_generator.rb
flip-0.2.0 lib/generators/flip/migration/migration_generator.rb
flip_fork-0.2.0 lib/generators/flip/migration/migration_generator.rb
flip_fork-0.1.1 lib/generators/flip/migration/migration_generator.rb
flip_fork-0.1.0 lib/generators/flip/migration/migration_generator.rb
flip-0.1.0 lib/generators/flip/migration/migration_generator.rb
flip-0.0.4 lib/generators/flip/migration/migration_generator.rb
flip-0.0.3 lib/generators/flip/migration/migration_generator.rb
flip-0.0.2 lib/generators/flip/migration/migration_generator.rb
flip-0.0.1 lib/generators/flip/migration/migration_generator.rb
flip-0.0.1.alpha2 lib/generators/flip/migration/migration_generator.rb