class UpdateableViewsInheritance::Generators::InstallGenerator
Public Class Methods
next_migration_number(dirname)
click to toggle source
Implement the required interface for Rails::Generators::Migration
# File lib/generators/updateable_views_inheritance/install_generator.rb, line 14 def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end
Public Instance Methods
install()
click to toggle source
# File lib/generators/updateable_views_inheritance/install_generator.rb, line 18 def install migration_file = "create_updateable_views_inheritance.rb" migration_template migration_file, "db/migrate/#{migration_file}" end