Sha256: a0f8cbbee22482663f7b5f6371e44e2733c51bbd773de3ee8d29639ff443b2cc

Contents?: true

Size: 429 Bytes

Versions: 104

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

# to keep track of when the roles were imported
class AddColumnsToAnsibleRole < ActiveRecord::Migration[4.2]
  def up
    add_column :ansible_roles, :created_at, :datetime, :default => Time.now.utc
    add_column :ansible_roles, :updated_at, :datetime, :default => Time.now.utc
  end

  def down
    remove_column :ansible_roles, :created_at
    remove_column :ansible_roles, :updated_at
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
foreman_ansible-6.3.2 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-6.3.1 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-6.4.1 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-6.4.0 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-6.3.0 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-6.2.0 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-6.1.1 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-6.0.2 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-6.1.0 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-6.0.1 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-5.1.3 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-6.0.0 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-5.1.2 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-5.1.1 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-5.1.0 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-4.0.3.5 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-4.0.3.4 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-4.0.3.3 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-4.0.3.2 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-5.0.1 db/migrate/20160729094457_add_columns_to_ansible_role.rb