Sha256: 724bd07d4353eb565c081a781dadc28df10fb4927a3a120f4d946746708c7776

Contents?: true

Size: 624 Bytes

Versions: 12

Compression:

Stored size: 624 Bytes

Contents

require 'rails/generators/active_record'

module ActiveRecord
  module Generators
    class JeraPushGenerator < ActiveRecord::Generators::Base
      source_root File.expand_path("../templates", __FILE__)

      def create_devices_table
        migration_template "create_jera_push_devices.rb", "db/migrate/create_jera_push_devices.rb"
      end

      def create_messages_table
        migration_template "create_jera_push_messages.rb", "db/migrate/create_jera_push_messages.rb"
        migration_template "create_jera_push_messages_devices.rb", "db/migrate/create_jera_push_messages_devices.rb"
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jera_push-1.1.7 lib/generators/active_record/jera_push_generator.rb
jera_push-1.1.6 lib/generators/active_record/jera_push_generator.rb
jera_push-1.1.5 lib/generators/active_record/jera_push_generator.rb
jera_push-1.1.4 lib/generators/active_record/jera_push_generator.rb
jera_push-1.1.3 lib/generators/active_record/jera_push_generator.rb
jera_push-1.1.2 lib/generators/active_record/jera_push_generator.rb
jera_push-1.1.1 lib/generators/active_record/jera_push_generator.rb
jera_push-1.1.0 lib/generators/active_record/jera_push_generator.rb
jera_push-1.0.3 lib/generators/active_record/jera_push_generator.rb
jera_push-1.0.2 lib/generators/active_record/jera_push_generator.rb
jera_push-1.0.1.1 lib/generators/active_record/jera_push_generator.rb
jera_push-1.0.1 lib/generators/active_record/jera_push_generator.rb