Sha256: 5df1474067f7ac39fc58ee8b78b72b823ca07d164327a6afe0baea12376cd09b

Contents?: true

Size: 491 Bytes

Versions: 6

Compression:

Stored size: 491 Bytes

Contents

class CreateCardboardPages < ActiveRecord::Migration
  def change
    create_table :cardboard_pages do |t|
      t.string :title
      t.string :path
      t.string :slug
      t.text :slugs_backup
      t.integer :position
      t.text :meta_seo
      t.boolean :in_menu, default: true
      t.string :identifier, unique: true

      t.timestamps
    end
    add_index :cardboard_pages, [:path, :slug], :unique => true
    add_index :cardboard_pages, :identifier, :unique => true
  end
end

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
cardboard_cms-0.1.8 lib/generators/cardboard/install/templates/migrations/3_create_cardboard_pages.rb
cardboard_cms-0.1.8 test/dummy/db/migrate/20130522151400_create_cardboard_pages.rb
cardboard_cms-0.1.6 lib/generators/cardboard/install/templates/migrations/3_create_cardboard_pages.rb
cardboard_cms-0.1.6 test/dummy/db/migrate/20130522151400_create_cardboard_pages.rb
cardboard_cms-0.1.4 lib/generators/cardboard/install/templates/migrations/3_create_cardboard_pages.rb
cardboard_cms-0.1.4 test/dummy/db/migrate/20130522151400_create_cardboard_pages.rb