class Notable::Generators::RequestsGenerator
Public Instance Methods
Source
# File lib/generators/notable/requests_generator.rb, line 9 def copy_migration migration_template "create_requests.rb", "db/migrate/create_notable_requests.rb", migration_version: migration_version end
Source
# File lib/generators/notable/requests_generator.rb, line 13 def migration_version "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]" end