Sha256: 7d6c74328928fa50fffa4c519840d8375af69df7289527685f5a72b9f1e651f4

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

# frozen_string_literal: true

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

      t.timestamps
    end

    add_index :extra_feature_items, :extra_feature_id
    add_column :extra_features, :price_title, :string
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 db/migrate/20141022454500_create_extra_feature_item.rb