Sha256: 45b9cef57d07e36a2fca5d2ce98a4cd1a755d3b1b206a465062c124b82949ef9

Contents?: true

Size: 825 Bytes

Versions: 15

Compression:

Stored size: 825 Bytes

Contents

class CreatePages < ActiveRecord::Migration
  def self.up
    create_table ConstructorPages::Page.table_name do |t|
      t.boolean :active, :default => true
      t.string  :name,  :default => ""
      t.boolean :auto_url, :default => true
      t.string  :full_url, :default => ""
      t.string  :url,    :default => ""
      t.string  :link,   :default => ""
      t.string  :title, :default => ""
      t.string  :keywords, :default => ""
      t.text    :description, :default => ""
      t.boolean :in_menu, :default => true
      t.boolean :in_nav,  :default => true
      t.boolean :in_map,  :default => true
      t.integer :parent_id
      t.integer :lft
      t.integer :rgt
      t.references :template
      t.timestamps
    end
  end

  def self.down
    drop_table ConstructorPages::Page.table_name
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
constructor-pages-0.2.14 db/migrate/1_create_pages.rb
constructor-pages-0.2.13 db/migrate/1_create_pages.rb
constructor-pages-0.2.12 db/migrate/1_create_pages.rb
constructor-pages-0.2.11 db/migrate/1_create_pages.rb
constructor-pages-0.2.10 db/migrate/1_create_pages.rb
constructor-pages-0.2.9 db/migrate/1_create_pages.rb
constructor-pages-0.2.8 db/migrate/1_create_pages.rb
constructor-pages-0.2.7 db/migrate/1_create_pages.rb
constructor-pages-0.2.6 db/migrate/1_create_pages.rb
constructor-pages-0.2.5 db/migrate/1_create_pages.rb
constructor-pages-0.2.4 db/migrate/1_create_pages.rb
constructor-pages-0.2.3 db/migrate/1_create_pages.rb
constructor-pages-0.2.2 db/migrate/1_create_pages.rb
constructor-pages-0.2.1 db/migrate/1_create_pages.rb
constructor-cms-0.2.1 pages/db/migrate/1_create_pages.rb