Sha256: 1fc54402a10255ca667b003d8d5ce3593bb80688153338660442c85e53db47d0
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
require "rails/generators/active_record" module Flipper module Generators class ActiveRecordGenerator < Rails::Generators::Base include Rails::Generators::Migration desc "Generates migration for flipper tables" source_paths << File.join(File.dirname(__FILE__), "templates") def create_migration_file migration_template "migration.rb", "db/migrate/create_flipper_tables.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 |
---|---|
flipper-active_record-0.7.4 | lib/generators/flipper/active_record_generator.rb |
flipper-active_record-0.7.3 | lib/generators/flipper/active_record_generator.rb |