Sha256: ebe57c04f25bc2275ddc2eb0f9036efa41bdd10d428a0fda7220457c9eb7ed53

Contents?: true

Size: 393 Bytes

Versions: 14

Compression:

Stored size: 393 Bytes

Contents

# to keep track of when the roles were imported
class AddColumnsToAnsibleRole < ActiveRecord::Migration
  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

14 entries across 14 versions & 1 rubygems

Version Path
foreman_ansible-1.5.2 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-1.5.1 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-1.5.0 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-1.4.6 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-1.4.5 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-1.4.3 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-1.4.2 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-1.4.1 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-1.4.0 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-1.3.1 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-1.3.0 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-1.2.1 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-1.2 db/migrate/20160729094457_add_columns_to_ansible_role.rb
foreman_ansible-1.1 db/migrate/20160729094457_add_columns_to_ansible_role.rb