Sha256: 5f1c4e0c29eaa06932032141e63e0fedb79e79dcbf7906ff4e81180d5efb2a88

Contents?: true

Size: 338 Bytes

Versions: 5

Compression:

Stored size: 338 Bytes

Contents

class CreateRtmlDomElements < ActiveRecord::Migration
  def self.up
    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

  def self.down
    drop_table :rtml_dom_elements
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rtml-2.0.4 rails_generators/rtml/templates/db/migrate/20100108163703_create_rtml_dom_elements.rb
rtml-2.0.3 rails_generators/rtml/templates/db/migrate/20100108163703_create_rtml_dom_elements.rb
rtml-2.0.2 rails_generators/rtml/templates/db/migrate/20100108163703_create_rtml_dom_elements.rb
rtml-2.0.1 rails_generators/rtml/templates/db/migrate/20100108163703_create_rtml_dom_elements.rb
rtml-2.0.0.alpha.1 rails_generators/rtml/templates/db/migrate/20100108163703_create_rtml_dom_elements.rb