Sha256: 7f02143e19e1fa735e70500958c05483d62c097f97b00951d13a59df6cb9701d
Contents?: true
Size: 624 Bytes
Versions: 6
Compression:
Stored size: 624 Bytes
Contents
require 'rails/generators' require 'rails/generators/migration' module Tang module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../../templates', __FILE__) desc 'Add the migrations for Tang' def self.next_migration_number(path) next_migration_number = current_migration_number(path) + 1 ActiveRecord::Migration.next_migration_number(next_migration_number) end def copy_migrations migration_template 'create_tang.rb', 'db/migrate/create_tang.rb' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems