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