Sha256: eedc36d829492f9429e8d03b070c9732877e6fe5996a1a8dce507811be10c14f
Contents?: true
Size: 757 Bytes
Versions: 5
Compression:
Stored size: 757 Bytes
Contents
require 'rails/generaTors/migration' module TkhMailingList module Generators class CreateOrUpdateMigrationsGenerator < ::Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) desc "add the migrations and locale files" def self.next_migration_number(path) unless @prev_migration_nr @prev_migration_nr = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i else @prev_migration_nr += 1 end @prev_migration_nr.to_s end def copy_migrations puts 'creating user migration' migration_template "add_teacher_status_to_users.rb", "db/migrate/add_teacher_status_to_users.rb" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems