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

Version Path
adva-0.3.2 db/migrate/20080401000002_create_sections_table.rb
adva-0.3.1 db/migrate/20080401000002_create_sections_table.rb
adva-0.3.0 db/migrate/20080401000002_create_sections_table.rb
adva-0.2.4 db/migrate/20080401000002_create_sections_table.rb
adva-0.2.3 db/migrate/20080401000002_create_sections_table.rb
adva-0.2.2 db/migrate/20080401000002_create_sections_table.rb
adva-0.2.1 db/migrate/20080401000002_create_sections_table.rb
adva-0.2.0 db/migrate/20080401000002_create_sections_table.rb
adva-0.1.4 db/migrate/20080401000002_create_sections_table.rb
adva-0.1.3 db/migrate/20080401000002_create_sections_table.rb
adva-0.1.2 db/migrate/20080401000002_create_sections_table.rb
adva-0.1.1 db/migrate/20080401000002_create_sections_table.rb
adva-0.1.0 db/migrate/20080401000002_create_sections_table.rb
adva_cms-0.0.1 db/migrate/20080401000002_create_sections_table.rb
adva-0.0.1 adva_cms/db/migrate/20080401000002_create_sections_table.rb