Sha256: 14af068007dc045c84132e4f14daeb570f17c7344912f8f94cd7a1eb3b839b51

Contents?: true

Size: 340 Bytes

Versions: 1

Compression:

Stored size: 340 Bytes

Contents

class RemoveDomElementsMirror < ActiveRecord::Migration
  def self.up
    drop_table :rtml_dom_elements
  end

  def self.down
    create_table :rtml_dom_elements do |t|
      t.string :name
      t.string :type, :default => 'Rtml::Dom::Element'

      t.references :parent
      t.references :document
      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rtml-2.0.4 rails_generators/rtml/templates/db/migrate/20100513165242_remove_dom_elements_mirror.rb