Sha256: 52c9957c2fff24f294067ff2209fd6d5320d23df2b04d852d105a34589ee6c94

Contents?: true

Size: 384 Bytes

Versions: 31

Compression:

Stored size: 384 Bytes

Contents

class CreateSmithyPageLists < ActiveRecord::Migration
  def change
    create_table :smithy_page_lists do |t|
      t.belongs_to :parent
      t.belongs_to :page_template
      t.boolean :include_children
      t.integer :count
      t.string :sort

      t.timestamps
    end
    add_index :smithy_page_lists, :parent_id
    add_index :smithy_page_lists, :page_template_id
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
smithycms-0.8.1 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.7.3 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.7.2 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.7.1 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.7.0 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.6.10 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.5.99.3 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.6.9 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.6.7 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.6.6 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.6.5 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.6.4 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.6.3 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.5.99.2 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.5.99.1 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.5.99 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.6.2 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.6.1 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.5.2 db/migrate/20130311203806_create_smithy_page_lists.rb
smithycms-0.6.0 db/migrate/20130311203806_create_smithy_page_lists.rb