Sha256: 53c0ac5d42096610327fd9e8a45ebc8d2969c134562547c83a685e8810862c84
Contents?: true
Size: 696 Bytes
Versions: 4
Compression:
Stored size: 696 Bytes
Contents
require 'rails/generators/active_record' module ActiveRecord module Generators class RubyGalleryGenerator < ActiveRecord::Generators::Base argument :attributes, :type => :array, :default => [], :banner => "filed:type field:type" source_root File.expand_path("../templates", __FILE__) def copy_ruby_gallery_migration migration_template "album_photo_migration.rb", "db/migrate/ruby_gallery_create_album_photos" migration_template "migration.rb", "db/migrate/ruby_gallery_add_columns_to_#{table_name}" migration_template "album_attachment_migration.rb", "db/migrate/ruby_gallery_create_album_attachments" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems