blob: dea500f7f3dc9c4655bb84c7d7d930ad5e6afb2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
namespace :generate do
task :migration, :title do |t, args|
filename = "build/db/migrations/#{Time.now.strftime('%Y%m%d%H%M%S%L')}_#{args.title}.rb"
puts "Creating new migration: #{filename}"
open(filename, 'w') do |post|
post.puts "Sequel.migration do"
post.puts " change do"
post.puts " end"
post.puts "end"
end
end
end
|