Sha256: 1a69458ccd2db05df6d59b7b038b143709fed70e44d0edfb25402f08bd4534fc

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

class CreateExtraFeatures < ActiveRecord::Migration
  def change
    create_table :extra_features do |t|
      t.string :title, null: false
      t.text :content
      t.integer :sort_order, default: 1
      t.boolean :is_visible, default: true
      t.integer :extra_feature_id

      t.timestamps
    end

    add_index :extra_features, :extra_feature_id
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 db/migrate/20140925454500_create_extra_features.rb