Sha256: 2f9aa0accd54db676b7ea7070458143973c02c4a20afc3fca9acb8eaf1c8f5b5
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
require 'rails/generators/migration' require 'rails/generators/active_record' module BinChecker class MigrationGenerator < Rails::Generators::Base include Rails::Generators::Migration namespace 'bin_checker:migration' source_root File.join(File.dirname(__FILE__), 'templates') def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end def create_migration_file migration_template 'migration.rb', 'db/migrate/create_bin_numbers_table.rb' rescue nil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bin_checker-0.2.0 | lib/generators/bin_checker/migration/migration_generator.rb |
bin_checker-0.1.0 | lib/generators/bin_checker/migration/migration_generator.rb |