Sha256: 4c7c6457db787be215332f60de57b78ed30027000d537422656bcb503caceae5
Contents?: true
Size: 668 Bytes
Versions: 15
Compression:
Stored size: 668 Bytes
Contents
class CreateSectionsTable < ActiveRecord::Migration def self.up create_table :sections do |t| t.string :type t.references :site t.integer :parent_id t.integer :lft, :null => false, :default => 0 t.integer :rgt, :null => false, :default => 0 t.string :path t.string :permalink t.string :title t.string :layout t.string :template t.text :options t.integer :contents_count t.integer :comment_age t.string :content_filter t.text :permissions end end def self.down drop_table :sections end end
Version data entries
15 entries across 15 versions & 2 rubygems