Sha256: 6b3792441bb483a2c65fbb05c51682cc23d8aa5c250ac3a66108deef837b8ac9
Contents?: true
Size: 1.76 KB
Versions: 6
Compression:
Stored size: 1.76 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' migration_template 'add_status_to_tramway_event_events.rb', 'db/migrate/add_status_to_tramway_event_events.rb' end end end
Version data entries
6 entries across 6 versions & 1 rubygems