Sha256: 8227762628e36dc7708dbfd771793a518b9ba9961e3ffc407c4c938d0474a1c0
Contents?: true
Size: 548 Bytes
Versions: 1
Compression:
Stored size: 548 Bytes
Contents
class MigrateHasMessagesToVersion2 < ActiveRecord::Migration def self.up ActiveRecord::Migrator.new(:up, "#{directory}/generators/has_messages/templates", 0).migrations.each do |migration| migration.migrate(:up) end end def self.down ActiveRecord::Migrator.new(:down, "#{directory}/generators/has_messages/templates", 0).migrations.each do |migration| migration.migrate(:down) end end private def self.directory Rails.plugins.find {|plugin| plugin.name == 'has_messages'}.directory end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
has_emails-0.3.1 | test/app_root/db/migrate/001_migrate_has_messages_to_version_2.rb |