This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Invoke using rake db:data:* | |
# Eg: rake db:data:migrate | |
namespace :db do | |
namespace :data do | |
pattern = /^db:data:(.*)$/ | |
rule pattern do |t| | |
ActiveRecord::Base.schema_migrations_table_name = 'data_migrations' | |
ActiveRecord::Tasks::DatabaseTasks.migrations_paths = ["#{Rails.root}/db/migrate_data"] | |
task_name = t.name.gsub(pattern, 'db:\1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adduser --system --no-create-home --disabled-login --disabled-password --group <username> |