Sha256: f2172385bc64706311b656ffe9a96dd25de5974ef876d3b6a8a1d89051ff2ccc
Contents?: true
Size: 772 Bytes
Versions: 2
Compression:
Stored size: 772 Bytes
Contents
require "generators/jive/webhook/webhook_generator" require "generators/jive/webhook/next_migration_version" require "rails/generators/migration" require "rails/generators/active_record" # Extend the HasDynamicColumnsGenerator so that it creates an AR migration module Jive class Webhook < ActiveRecord::Base class ActiveRecordGenerator < ::Jive::Webhook::Generator include Rails::Generators::Migration extend NextMigrationVersion source_paths << File.join(File.dirname(__FILE__), "templates") def create_migration_file migration_template "migration_0.1.0.rb", "db/migrate/add_jive_webhooks_0_1_0_migration.rb" end def self.next_migration_number(dirname) ::ActiveRecord::Generators::Base.next_migration_number dirname end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jive-webhook-0.0.2 | lib/generators/jive/webhook/active_record_generator.rb |
jive-webhook-0.0.1 | lib/generators/jive/webhook/active_record_generator.rb |