Sha256: 5a20c8099991f1c6510837b49f179daaa77d8360c5b060238fdb51230200a1ef
Contents?: true
Size: 1.64 KB
Versions: 1
Compression:
Stored size: 1.64 KB
Contents
require 'rails/generators' require 'tramway/core/generators/install_generator' module Tramway::Event::Generators class InstallGenerator < ::Tramway::Core::Generators::InstallGenerator include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def run_other_generators end def self.next_migration_number(path) next_migration_number = current_migration_number(path) + 1 ActiveRecord::Migration.next_migration_number next_migration_number end def copy_migrations migration_template 'create_tramway_event_events.rb', 'db/migrate/create_tramway_event_events.rb' migration_template 'add_photo_to_tramway_event_events.rb', 'db/migrate/add_photo_to_tramway_event_events.rb' migration_template 'create_tramway_event_participant_form_fields.rb', 'db/migrate/create_tramway_event_participant_form_fields.rb' migration_template 'create_tramway_event_participants.rb', 'db/migrate/create_tramway_event_participants.rb' migration_template 'add_options_to_tramway_event_participant_form_fields.rb', 'db/migrate/add_options_to_tramway_event_participant_form_fields.rb' migration_template 'add_position_to_tramway_event_participant_form_fields.rb', 'db/migrate/add_position_to_tramway_event_participant_form_fields.rb' migration_template 'create_tramway_event_sections.rb', 'db/migrate/create_tramway_event_sections.rb' migration_template 'add_icon_to_tramway_event_sections.rb', 'db/migrate/add_icon_to_tramway_event_sections.rb' migration_template 'add_position_to_tramway_event_sections.rb', 'db/migrate/add_position_to_tramway_event_sections.rb' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tramway-event-1.2.2 | lib/tramway/event/generators/install_generator.rb |