Sha256: 6403e64ad8f0cd750ca804f0e0429bfa9c0b59c88310891f2bd93e9365b21302

Contents?: true

Size: 332 Bytes

Versions: 4

Compression:

Stored size: 332 Bytes

Contents

class IsActiveEmployeesClients < ActiveRecord::Migration
  def self.up
    [:clients, :employees].each do |table_name| 
      add_column table_name, :is_active, :boolean, :default => true, :null => false
    end
  end
  
  def self.down
    [:clients, :employees].each { |table_name| remove_column table_name, :is_active }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
brisk-bills-0.8.2 db/migrate/020_is_active_employees_clients.rb
brisk-bills-0.8.1 db/migrate/020_is_active_employees_clients.rb
brisk-bills-0.7.0 db/migrate/020_is_active_employees_clients.rb
brisk-bills-0.6.0 db/migrate/020_is_active_employees_clients.rb