Sha256: 6e7bad8eb804678634889fcce620981abf2655abb0c85d61ccd0febb7612aa01

Contents?: true

Size: 428 Bytes

Versions: 12

Compression:

Stored size: 428 Bytes

Contents

class CreateCategoriesTable < ActiveRecord::Migration
  def self.up
    create_table :categories do |t|
      t.references  :section
      t.integer     :parent_id
      t.integer     :lft, :null => false, :default => 0
      t.integer     :rgt, :null => false, :default => 0
      t.string      :title
      t.string      :path
      t.string      :permalink
    end
  end

  def self.down
    drop_table :categories
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
adva-0.2.4 db/migrate/20080401000004_create_categories_table.rb
adva-0.2.3 db/migrate/20080401000004_create_categories_table.rb
adva-0.2.2 db/migrate/20080401000004_create_categories_table.rb
adva-0.2.1 db/migrate/20080401000004_create_categories_table.rb
adva-0.2.0 db/migrate/20080401000004_create_categories_table.rb
adva-0.1.4 db/migrate/20080401000004_create_categories_table.rb
adva-0.1.3 db/migrate/20080401000004_create_categories_table.rb
adva-0.1.2 db/migrate/20080401000004_create_categories_table.rb
adva-0.1.1 db/migrate/20080401000004_create_categories_table.rb
adva-0.1.0 db/migrate/20080401000004_create_categories_table.rb
adva_cms-0.0.1 db/migrate/20080401000004_create_categories_table.rb
adva-0.0.1 adva_cms/db/migrate/20080401000004_create_categories_table.rb