Sha256: 01eb5ca1fd98ed4f99d593edfd67c347a61bffa409aae892a270ce893ef2e9e3

Contents?: true

Size: 899 Bytes

Versions: 4

Compression:

Stored size: 899 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, unique: true
    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

4 entries across 4 versions & 1 rubygems

Version Path
archangel-0.0.5 db/migrate/20171005224054_create_archangel_pages.rb
archangel-0.0.4 db/migrate/20171005224054_create_archangel_pages.rb
archangel-0.0.3 db/migrate/20171005224054_create_archangel_pages.rb
archangel-0.0.2 db/migrate/20171005224054_create_archangel_pages.rb