Sha256: 38cbf2661e909eca7b6a84800c8e836e3ac608b830de6ab1caa59785f06aff69
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 Bytes
Contents
class CreateSettings < ActiveRecord::Migration[5.2] 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hackathon_manager-0.14.1 | db/migrate/20190216203450_create_settings.rb |
hackathon_manager-0.14.0 | db/migrate/20190216203450_create_settings.rb |