Sha256: 9cef9c5f7fe00db965864f9038b741ce41770d42c47beac980d70f9b33d34482
Contents?: true
Size: 319 Bytes
Versions: 1
Compression:
Stored size: 319 Bytes
Contents
class MigrationGenerator < Rails::Generators::Base desc "Creates a migration" argument :name, :type => :string def self.source_root @source_root ||= File.expand_path("../templates", __FILE__) end def create_migration template "#{name}.erb", 'db/migrations/20100203_create_users.rb' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
generator-spec-0.3.4 | lib/generators/migration/migration_generator.rb |