Sha256: 70b9c0a2c6a3f60eb87df40e98a89eb2d7067c95d939fda5dd43fa09adbebdeb
Contents?: true
Size: 938 Bytes
Versions: 1
Compression:
Stored size: 938 Bytes
Contents
# frozen_string_literal: true require "quails/generators/migration" module ActiveRecord module Generators # :nodoc: module Migration extend ActiveSupport::Concern include Quails::Generators::Migration module ClassMethods # Implement the required interface for Quails::Generators::Migration. def next_migration_number(dirname) next_migration_number = current_migration_number(dirname) + 1 ActiveRecord::Migration.next_migration_number(next_migration_number) end end private def primary_key_type key_type = options[:primary_key_type] ", id: :#{key_type}" if key_type end def db_migrate_path if defined?(Quails.application) && Quails.application Quails.application.config.paths["db/migrate"].to_ary.first else "db/migrate" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-on-quails-0.1.0 | activerecord/lib/rails/generators/active_record/migration.rb |