Sha256: 07813f8a471d4ecf9e1c61ae09095e7f3abb6d8d508ea060fee65b8005b76939

Contents?: true

Size: 417 Bytes

Versions: 9

Compression:

Stored size: 417 Bytes

Contents

class CreatePartTypes < ActiveRecord::Migration
  def self.up
    create_table :part_types do |t|
      t.column :name, :string
      t.column :field_type, :string
      t.column :field_class, :string
      t.column :field_styles, :string
    end
    
    add_column :template_parts, :part_type_id, :integer
  end

  def self.down
    drop_table :part_types
    remove_column :template_parts, :part_type_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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