Sha256: 9ff2e15b35cc82712def5e71a16ef96c8ca6a64a13ef9d1e88db1849aae5ac46
Contents?: true
Size: 416 Bytes
Versions: 2
Compression:
Stored size: 416 Bytes
Contents
# frozen_string_literal: true class CreateSettings < ActiveRecord::Migration def self.up create_table(:settings) do |t| t.string :var, limit: 50, null: false t.text :value t.integer :thing_id t.string :thing_type, limit: 30 t.timestamps end add_index :settings, [: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 |
---|---|
sunrise-cms-1.1.1 | db/migrate/20120611095315_create_settings.rb |
sunrise-cms-1.1.0 | db/migrate/20120611095315_create_settings.rb |