Sha256: 69ffc33e3955025518006081541be345b9600a19f0e23b190c0efda956560b40

Contents?: true

Size: 885 Bytes

Versions: 5

Compression:

Stored size: 885 Bytes

Contents

class CreateArchangelPages < ActiveRecord::Migration[5.1]
  def change
    create_table :archangel_pages do |t|
      t.integer :site_id, null: false
      t.integer :parent_id
      t.integer :template_id
      t.string :title
      t.string :slug
      t.string :path
      t.text :content, default: ""
      t.boolean :homepage, default: false
      t.string :meta_keywords
      t.string :meta_description
      t.datetime :published_at
      t.datetime :deleted_at

      t.timestamps
    end

    add_index :archangel_pages, :deleted_at
    add_index :archangel_pages, :homepage
    add_index :archangel_pages, :parent_id
    add_index :archangel_pages, :path
    add_index :archangel_pages, :published_at
    add_index :archangel_pages, :site_id
    add_index :archangel_pages, :slug
    add_index :archangel_pages, :template_id
    add_index :archangel_pages, :title
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
archangel-0.4.0 db/migrate/20171005224054_create_archangel_pages.rb
archangel-0.3.0 db/migrate/20171005224054_create_archangel_pages.rb
archangel-0.0.8 db/migrate/20171005224054_create_archangel_pages.rb
archangel-0.0.7 db/migrate/20171005224054_create_archangel_pages.rb
archangel-0.0.6 db/migrate/20171005224054_create_archangel_pages.rb