Sha256: d98bcd109198466e0b6ff1cbe27438efaf517d15d70ef817b3d3547161016a85

Contents?: true

Size: 372 Bytes

Versions: 9

Compression:

Stored size: 372 Bytes

Contents

class CreateTemplateParts < ActiveRecord::Migration
  def self.up
    create_table :template_parts do |t|
      t.column :template_id, :integer
      t.column :name, :string
      t.column :filter_id, :string
    end
    
    add_index :template_parts, :template_id, :name => 'template_parts_on_template_id'
  end

  def self.down
    drop_table :template_parts
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
radiant-templates-extension-1.0.8 db/migrate/002_create_template_parts.rb
radiant-templates-extension-1.0.7 db/migrate/002_create_template_parts.rb
radiant-templates-extension-1.0.6 db/migrate/002_create_template_parts.rb
radiant-templates-extension-1.0.5 db/migrate/002_create_template_parts.rb
radiant-templates-extension-1.0.4 db/migrate/002_create_template_parts.rb
radiant-templates-extension-1.0.3 db/migrate/002_create_template_parts.rb
radiant-templates-extension-1.0.2 db/migrate/002_create_template_parts.rb
radiant-templates-extension-1.0.1 db/migrate/002_create_template_parts.rb
radiant-templates-extension-1.0.0 db/migrate/002_create_template_parts.rb