Sha256: b11461adff3c407286a477dab7f4b05ae2c996c15bef22bd3d388b50ffb64c04
Contents?: true
Size: 476 Bytes
Versions: 154
Compression:
Stored size: 476 Bytes
Contents
class MoveNotes < ActiveRecord::Migration def self.up # Remove the host requirement. We'll add the column back in below. remove_column :notes, :host_id change_table :notes do |t| t.integer :workspace_id, :null => false, :default => 1 t.integer :service_id t.integer :host_id end end def self.down remove_column :notes, :workspace_id remove_column :notes, :service_id change_table :notes do |t| t.integer :host_id, :null => false end end end
Version data entries
154 entries across 154 versions & 1 rubygems