Sha256: a2675b7800572e157934c8c32180f57a728835859e0156cf105f7eb0a0d69723

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

# This migration comes from sunrise (originally 20120611095315)
class CreateSettings < ActiveRecord::Migration
  def self.up
    create_table(:settings) do |t|
      t.string  :var, limit: 50, null: false
      t.text    :value
      t.integer :target_id
      t.string  :target_type, limit: 30
      t.timestamps
    end

    add_index :settings, [:var, :target_type, :target_id], unique: true
  end

  def self.down
    drop_table :settings
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 db/migrate/20130701092432_create_settings.sunrise.rb