Sha256: 52e27b90eae5db145950018bd0c251d08125c76f250fb57368ed136346fe735b
Contents?: true
Size: 481 Bytes
Versions: 22
Compression:
Stored size: 481 Bytes
Contents
class MoveNotes < ActiveRecord::Migration[4.2] 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
22 entries across 22 versions & 2 rubygems