Sha256: d01082ccef4f2a1ac2bdb20d7e57bd9630fd25a31ddcc8b4d7c42b6116d966a8

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 Bytes

Contents

# frozen_string_literal: true

class CreateWidgets < ActiveRecord::Migration
  def change
    create_table :widgets do |t|
      t.string      :title
      t.string      :link_url
      t.integer     :widget_position_type_id, limit: 1, default: 1
      t.integer     :widget_type_id, limit: 1, default: 1
      t.integer     :sort_order, limit: 1, default: 1
      t.integer     :structure_id
      t.integer     :counter, default: 1

      t.timestamps
    end

    add_index :widgets, [:structure_id, :widget_position_type_id, :sort_order], name: 'widgets_structures'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 db/migrate/20140806000001_create_widgets.rb