mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
54286878c6
commit
48acc9aefc
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ module ApplicationTests
|
||||||
assert $task_loaded
|
assert $task_loaded
|
||||||
end
|
end
|
||||||
|
|
||||||
test "task is protected when previous migration was production" do
|
test "task is protected when previous migration was production" do
|
||||||
Dir.chdir(app_path) do
|
Dir.chdir(app_path) do
|
||||||
output = `bin/rails generate model product name:string;
|
output = `bin/rails generate model product name:string;
|
||||||
env RAILS_ENV=production bin/rails db:create db:migrate;
|
env RAILS_ENV=production bin/rails db:create db:migrate;
|
||||||
|
|
Loading…
Reference in a new issue