Sha256: 86daa013412cefb5356b5239ae2d0c08742d91b26fc7f25c1a570a9ff7b94811

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 Bytes

Contents

# This migration comes from kono_mailup (originally 20171124083941)
class CreateSettings < ActiveRecord::Migration
  def self.up
    create_table :settings do |t|
      t.string  :var,        null: false
      t.text    :value,      null: true
      t.integer :thing_id,   null: true
      t.string  :thing_type, null: true, limit: 30
      t.timestamps
    end

    add_index :settings, %i(thing_type thing_id var), unique: true
  end

  def self.down
    drop_table :settings
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kono_mailup-0.1.0 spec/dummy/db/migrate/20171124094841_create_settings.kono_mailup.rb
kono_mailup-0.0.2 spec/dummy/db/migrate/20171124094841_create_settings.kono_mailup.rb
kono_mailup-0.0.1 spec/dummy/db/migrate/20171124094841_create_settings.kono_mailup.rb