Sha256: b4c9cfc0c32879d8b6ec90650687713bc1e98890979fe428092da1c865a768b9

Contents?: true

Size: 545 Bytes

Versions: 1

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

# This migration comes from page_parts_engine (originally 20111226144515)
class CreatePageParts < ActiveRecord::Migration
  def self.up
    create_table :page_parts do |t|
      t.string :key, limit: 10, null: false
      t.text :content

      t.integer :partable_id, null: false
      t.string :partable_type, limit: 50, null: false

      t.timestamps
    end

    add_index :page_parts, :key
    add_index :page_parts, [:partable_type, :partable_id]
  end

  def self.down
    drop_table :page_parts
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 db/migrate/20130701092447_create_page_parts.page_parts_engine.rb