Sha256: 811a1a159aa19ce2b0452e07cf1879e6b9bf92f69739fa5be981833fdd143b50
Contents?: true
Size: 803 Bytes
Versions: 9
Compression:
Stored size: 803 Bytes
Contents
require 'rails/generators' require 'rails/generators/migration' require 'rails/generators/active_record' module UpdateableViewsInheritance module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration desc "Creates a migration for a special table used by the updateable_views_inheritance gem" source_root File.expand_path('../templates', __FILE__) # Implement the required interface for Rails::Generators::Migration def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end def install migration_file = "create_updateable_views_inheritance.rb" migration_template migration_file, "db/migrate/#{migration_file}" end end end end
Version data entries
9 entries across 9 versions & 1 rubygems