Sha256: ac6e5ccc38c785e4349d586daf63c3a06991e09fb2a75eaf29ce2e591eda1103
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
class ChangeSettings < ActiveRecord::Migration def change remove_index :qbrick_settings, :key rename_column :qbrick_settings, :key, :var remove_column :qbrick_settings, :settings_collection_id change_table :qbrick_settings do |t| t.change :var, :string, null: false t.change :value, :text, null: false t.integer :thing_id, null: true t.string :thing_type, limit: 30, null: true t.timestamps end add_index :qbrick_settings, %i(thing_type thing_id var), unique: true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qbrick-2.7.1 | db/migrate/26_change_settings.rb |
qbrick-2.7 | db/migrate/26_change_settings.rb |